From 8dd994f64836e18d4bb3b7a80a0bc9769363d2c6 Mon Sep 17 00:00:00 2001 From: Joze RIHTARSIC <joze.RIHTARSIC@ext.ec.europa.eu> Date: Thu, 12 May 2022 17:41:25 +0200 Subject: [PATCH] Add success message on certificate import --- .../truststore-edit-dialog/truststore-edit-dialog.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/smp-angular/src/app/user/truststore-edit-dialog/truststore-edit-dialog.component.ts b/smp-angular/src/app/user/truststore-edit-dialog/truststore-edit-dialog.component.ts index 8f9a3a2ce..feab2a2da 100644 --- a/smp-angular/src/app/user/truststore-edit-dialog/truststore-edit-dialog.component.ts +++ b/smp-angular/src/app/user/truststore-edit-dialog/truststore-edit-dialog.component.ts @@ -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); -- GitLab