Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 8dd994f6 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Add success message on certificate import

parent ff867bc0
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,7 @@ export class TruststoreEditDialogComponent {
const file = event.target.files[0];
this.truststoreService.uploadCertificate$(file).subscribe((res: CertificateRo) => {
if (res && res.certificateId) {
this.alertService.success("Certificate: " + res.certificateId + " is imported!");
this.lookups.refreshTrustedCertificateLookup();
} else {
this.alertService.exception("Error occurred while uploading certificate.", "Check if uploaded file has valid certificate type.", false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment