From 772420bcfa0c5bc8ea936b5ea41113dca88ef06a Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 14 Dec 2020 12:39:25 +0100 Subject: [PATCH] FEAT #14565 TIME 0:20 WIP multi sign --- src/frontend/app/service/actions.service.ts | 1 + .../signature-method/signature-method-modal.component.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/frontend/app/service/actions.service.ts b/src/frontend/app/service/actions.service.ts index e4c6d62963..a39d84ced5 100644 --- a/src/frontend/app/service/actions.service.ts +++ b/src/frontend/app/service/actions.service.ts @@ -95,6 +95,7 @@ export class ActionsService { .pipe( tap((res: any) => { if (eSignature !== null) { + console.log(res); const objSignData = { hashDocument : res.dataToSign, signatureContentLength : res.signatureContentLength, diff --git a/src/frontend/app/service/signature-method/signature-method-modal.component.ts b/src/frontend/app/service/signature-method/signature-method-modal.component.ts index 387cabe128..fc38fbdc06 100644 --- a/src/frontend/app/service/signature-method/signature-method-modal.component.ts +++ b/src/frontend/app/service/signature-method/signature-method-modal.component.ts @@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit { while (!allSignaturesComplete) { let signDocComplete: any = false; while (signDocComplete === false) { + console.log('recupération hashDocument'); res = await this.actionsService.sendDocument(this.note, this.certificate, this.signatureLength, res.tmpUniqueId); + console.log('res hashDocument', res); if (res === null) { return false; } else if (res !== false) { + console.log('signature document'); signDocComplete = await this.signDocument(res.hashDocument, res.signatureContentLength, res.signatureFieldName); if (signDocComplete) { this.signaturesService.signaturesContent.shift(); allSignaturesComplete = this.signaturesService.signaturesContent.length === 0; + res = {}; } } } -- GitLab