diff --git a/lang/fr.json b/lang/fr.json index b1c094a5d09496412eb4ca235edbf399f4add1ab..9dc381e60134299937bbc7c1d7a339b244258d77 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 de64d79378b735600c49cc3f54191395dfa4023c..a4d8928f86e14430475a6f94f39fc7a637cdd4f4 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(); } } ]