handling for invalid digital signature
This commit is contained in:
parent
6f18a275ad
commit
afa6d00a4b
@ -14,16 +14,7 @@
|
||||
[routerLinkActiveOptions]="{ exact: true }"
|
||||
routerLinkActive="active"
|
||||
translate="digital-signature"
|
||||
*ngIf="root"
|
||||
></a>
|
||||
|
||||
<a
|
||||
class="breadcrumb"
|
||||
[routerLink]="'/ui/admin/users'"
|
||||
[routerLinkActiveOptions]="{ exact: true }"
|
||||
routerLinkActive="active"
|
||||
translate="user-management"
|
||||
*ngIf="root && userPreferenceService.areDevFeaturesEnabled"
|
||||
*ngIf="root && permissionService.isAdmin()"
|
||||
></a>
|
||||
|
||||
<a
|
||||
@ -32,6 +23,15 @@
|
||||
[routerLinkActiveOptions]="{ exact: true }"
|
||||
routerLinkActive="active"
|
||||
translate="license-information"
|
||||
*ngIf="root && permissionService.isAdmin()"
|
||||
></a>
|
||||
|
||||
<a
|
||||
class="breadcrumb"
|
||||
[routerLink]="'/ui/admin/users'"
|
||||
[routerLinkActiveOptions]="{ exact: true }"
|
||||
routerLinkActive="active"
|
||||
translate="user-management"
|
||||
*ngIf="root && userPreferenceService.areDevFeaturesEnabled"
|
||||
></a>
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@ -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."
|
||||
}
|
||||
|
||||
@ -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."
|
||||
}
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user