From 2b48ba44a06ee6799cd32c54a5721ac85a60b42f Mon Sep 17 00:00:00 2001
From: "hamza.hramchi" <hamza.hramchi@xelians.fr>
Date: Thu, 16 Sep 2021 18:02:23 +0200
Subject: [PATCH] FIX #17966 TIME 0:15 display a reminder message to close the
 document editor

---
 .../office365-sharepoint-viewer.component.html                | 4 ++++
 src/lang/lang-en.json                                         | 3 ++-
 src/lang/lang-fr.json                                         | 3 ++-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/frontend/plugins/office365-sharepoint/office365-sharepoint-viewer.component.html b/src/frontend/plugins/office365-sharepoint/office365-sharepoint-viewer.component.html
index af6f04fc741..b6f5fb58933 100644
--- a/src/frontend/plugins/office365-sharepoint/office365-sharepoint-viewer.component.html
+++ b/src/frontend/plugins/office365-sharepoint/office365-sharepoint-viewer.component.html
@@ -4,6 +4,10 @@
         <div>
             {{'lang.editInProgress' | translate}}
         </div>
+        <div *ngIf="documentWebUrl !== null" style="font-weight: bold;">
+            <i class="fas fa-exclamation-circle" style="font-size: 20px;"></i> {{'lang.sharePointWarning' | translate}}
+        </div> 
+ 
     </div>
     <div style="display: flex; justify-content: center">
         <button mat-button (click)="openDocument()" class="button-form-primary-alt" [disabled]="documentWebUrl === null">
diff --git a/src/lang/lang-en.json b/src/lang/lang-en.json
index 188a29d575b..de84f42b7ea 100644
--- a/src/lang/lang-en.json
+++ b/src/lang/lang-en.json
@@ -2544,5 +2544,6 @@
     "switchSae": "Configure Maarch RM",
     "configSaeInfo": "For more information on setting up an electronic filing system.Consult the documentation : <a href=\"{{url}}\" target=\"_blank\" class=\"link\"> Configure an SAE < / a>",
     "delegatedOpinion": "Opinion given instead of",
-    "requestedOpinion": "Opinion requested instead of"
+    "requestedOpinion": "Opinion requested instead of",
+    "sharePointWarning": "Close the document editor before validating the edit"
 }
diff --git a/src/lang/lang-fr.json b/src/lang/lang-fr.json
index f20430fa7b5..59d58e6d9c7 100644
--- a/src/lang/lang-fr.json
+++ b/src/lang/lang-fr.json
@@ -2542,5 +2542,6 @@
     "switchSae": "Configurer Maarch RM",
     "configSaeInfo": "Pour plus d'informations sur la configuration d'un système d'archivage électronique. Consulter la documentation : <a href=\"{{url}}\" target=\"_blank\" class=\"link\">Configurer un SAE</a>",
     "delegatedOpinion": "Avis donné à la place de",
-    "requestedOpinion": "Avis demandé à la place de"
+    "requestedOpinion": "Avis demandé à la place de",
+    "sharePointWarning": "Fermez l'éditeur du document avant de valider l'édition"
 }
-- 
GitLab