diff --git a/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html b/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html index 8d121eaf0..ddc442bab 100644 --- a/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html +++ b/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html @@ -14,16 +14,7 @@ [routerLinkActiveOptions]="{ exact: true }" routerLinkActive="active" translate="digital-signature" - *ngIf="root" - > - - + + diff --git a/apps/red-ui/src/app/screens/admin/digital-signature-screen/digital-signature-screen.component.ts b/apps/red-ui/src/app/screens/admin/digital-signature-screen/digital-signature-screen.component.ts index f0a32c9d8..7381bc6a6 100644 --- a/apps/red-ui/src/app/screens/admin/digital-signature-screen/digital-signature-screen.component.ts +++ b/apps/red-ui/src/app/screens/admin/digital-signature-screen/digital-signature-screen.component.ts @@ -44,12 +44,20 @@ export class DigitalSignatureScreenComponent { NotificationType.SUCCESS ); }, - () => { - this._notificationService.showToastNotification( - this._translateService.instant('digital-signature-screen.action.save-error'), - null, - NotificationType.ERROR - ); + (error) => { + if (error.status === 400) { + this._notificationService.showToastNotification( + this._translateService.instant('digital-signature-screen.action.certificate-not-valid-error'), + null, + NotificationType.ERROR + ); + } else { + this._notificationService.showToastNotification( + this._translateService.instant('digital-signature-screen.action.save-error'), + null, + NotificationType.ERROR + ); + } } ); } diff --git a/apps/red-ui/src/assets/i18n/de.json b/apps/red-ui/src/assets/i18n/de.json index 6b1c086d0..1ca333104 100644 --- a/apps/red-ui/src/assets/i18n/de.json +++ b/apps/red-ui/src/assets/i18n/de.json @@ -821,6 +821,7 @@ "reset": "Zurücksetzen", "save-success": "Digitale Signatur erfolgreich gespeichert", "save-error": "Fehler beim Speichern der digitalen Signatur", + "certificate-not-valid-error": "Das hochgeladene Zertifikat gilt nicht zum Signieren von PDFs. Das PCKS.12-Format ist erforderlich.", "delete-success": "Digitale Signatur entfernt. Redigierte Dateien werden nicht mehr signiert!", "delete-error": "Fehler beim Entfernen der digitalen Signatur. Versuchen Sie es erneut." } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 111f2e09c..80e2ae2b3 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -821,6 +821,7 @@ "reset": "Reset", "save-success": "Digital signature saved successfully", "save-error": "Failed to save digital signature", + "certificate-not-valid-error": "Uploaded Certificate is not valid for signing PDFs. PCKS.12 format is required.", "delete-success": "Digital signature removed. Redacted files will no longer be signed!", "delete-error": "Failed to remove digital signature, please try again." } diff --git a/tools/auto-i18n/translateCache-de.txt b/tools/auto-i18n/translateCache-de.txt index cdd615adf..e904d8df7 100644 --- a/tools/auto-i18n/translateCache-de.txt +++ b/tools/auto-i18n/translateCache-de.txt @@ -592,3 +592,6 @@ The use of this product is subject to the terms of the Redaction End User Agreem Digital signature removed. Redacted files will no longer be signed!|Digitale Signatur entfernt. Redigierte Dateien werden nicht mehr signiert! No members yet. Select from the list below.|Noch keine Mitglieder. Wählen Sie aus der folgenden Liste. +No members yet. +Select from the list below.|Noch keine Mitglieder. Wählen Sie aus der folgenden Liste. +Uploaded Certificate is not valid for signing PDFs. PCKS.12 format is required.|Das hochgeladene Zertifikat gilt nicht zum Signieren von PDFs. Das PCKS.12-Format ist erforderlich.