From 6d17bc917b69a2580e72974eccd2e9fceec9d38f Mon Sep 17 00:00:00 2001 From: "hamza.hramchi" <hamza.hramchi@xelians.fr> Date: Fri, 18 Dec 2020 12:48:47 +0100 Subject: [PATCH] FEAT #15550 TIME 0:03 add a loader when making a delegated organization signature --- lang/fr.json | 3 ++- src/frontend/app/document/document.component.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lang/fr.json b/lang/fr.json index b1c094a5d0..9dc381e601 100755 --- a/lang/fr.json +++ b/lang/fr.json @@ -415,6 +415,7 @@ "until": "Jusqu'à ", "resource": "Ressource", "manage_historyAdmin": "Consulter l'historique", - "manage_historyDesc": "Consulter les différents événements de l'application" + "manage_historyDesc": "Consulter les différents événements de l'application", + "loadingValidation": "Validation du document en cours ..." } } diff --git a/src/frontend/app/document/document.component.ts b/src/frontend/app/document/document.component.ts index de64d79378..a4d8928f86 100755 --- a/src/frontend/app/document/document.component.ts +++ b/src/frontend/app/document/document.component.ts @@ -664,6 +664,13 @@ export class DocumentComponent implements OnInit { { text: this.translate.instant('lang.validate'), handler: async (data: any) => { + this.loadingController.create({ + message: this.translate.instant('lang.loadingValidation'), + spinner: 'dots' + }).then((load: HTMLIonLoadingElement) => { + this.load = load; + this.load.present(); + }); const currentUserWorkflow = this.mainDocument.workflow.filter((line: { current: boolean; }) => line.current === true)[0]; const res = await this.signatureMethodService.checkAuthenticationAndLaunchAction(currentUserWorkflow, data.paragraph); if (!this.functionsService.empty(res)) { @@ -680,6 +687,7 @@ export class DocumentComponent implements OnInit { this.bottomSheet.open(SuccessInfoValidBottomSheetComponent, config); this.localStorage.remove(this.mainDocument.id.toString()); } + this.load.dismiss(); } } ] -- GitLab