Skip to content
Snippets Groups Projects
Commit 772420bc authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14565 TIME 0:20 WIP multi sign

parent 7c1557b9
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ export class ActionsService { ...@@ -95,6 +95,7 @@ export class ActionsService {
.pipe( .pipe(
tap((res: any) => { tap((res: any) => {
if (eSignature !== null) { if (eSignature !== null) {
console.log(res);
const objSignData = { const objSignData = {
hashDocument : res.dataToSign, hashDocument : res.dataToSign,
signatureContentLength : res.signatureContentLength, signatureContentLength : res.signatureContentLength,
......
...@@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit { ...@@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit {
while (!allSignaturesComplete) { while (!allSignaturesComplete) {
let signDocComplete: any = false; let signDocComplete: any = false;
while (signDocComplete === false) { while (signDocComplete === false) {
console.log('recupération hashDocument');
res = await this.actionsService.sendDocument(this.note, this.certificate, this.signatureLength, res.tmpUniqueId); res = await this.actionsService.sendDocument(this.note, this.certificate, this.signatureLength, res.tmpUniqueId);
console.log('res hashDocument', res);
if (res === null) { if (res === null) {
return false; return false;
} else if (res !== false) { } else if (res !== false) {
console.log('signature document');
signDocComplete = await this.signDocument(res.hashDocument, res.signatureContentLength, res.signatureFieldName); signDocComplete = await this.signDocument(res.hashDocument, res.signatureContentLength, res.signatureFieldName);
if (signDocComplete) { if (signDocComplete) {
this.signaturesService.signaturesContent.shift(); this.signaturesService.signaturesContent.shift();
allSignaturesComplete = this.signaturesService.signaturesContent.length === 0; allSignaturesComplete = this.signaturesService.signaturesContent.length === 0;
res = {};
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment