Commit 2ab6303f authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #17118 TIME 0:45 can not edit main document that is currently in an external signatory book

parent 7c22fc34
......@@ -833,7 +833,9 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
}
editResource() {
if (this.editor.mode === 'java' && this.file.format.toLowerCase() === 'pdf') {
if (!this.functions.empty(this.externalId.signatureBookId)) {
this.notify.error(this.translate.instant('lang.sendInExternalSignatoryBook'));
} else if (this.editor.mode === 'java' && this.file.format.toLowerCase() === 'pdf') {
this.notify.error(this.translate.instant('lang.javaEditDenied') + ' <b>PDF</b> ' + this.translate.instant('lang.javaEditDenied2'));
} else {
if (this.mode === 'attachment') {
......
......@@ -2259,6 +2259,7 @@
"addTile": "Add a tile",
"tileType": "Tile type",
"dashboardEmpty": "Your dashboard is empty",
"sendInExternalSignatoryBook": "This document is currently in an external signatory book",
"navigation": "Navigation",
"acountNotLinkedTomaarchParapheur": "Your account is not linked to Maarch Parapheur",
"error": "Eroor",
......
......@@ -2254,6 +2254,7 @@
"addTile": "Ajouter une tuile",
"tileType": "Type de tuile",
"dashboardEmpty": "Votre tableau de bord est vide",
"sendInExternalSignatoryBook": "Ce document est en cours de traitement dans un parapheur externe",
"refStatus": "Ce document a été refusé dans le parapheur externe",
"valStatus": "Ce document a été validé dans le parapheur externe",
"stopStatus": "Ce document a été interrompu dans la parapheur externe",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment