Commit 1f9cbf11 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

Merge branch 'fix/17109/develop' into 'develop'

FIX #17109 TIME 0:40 fix processInfo if otp

See merge request maarch/MaarchParapheur!67
parents fc864147 7e1e8fc1
......@@ -92,7 +92,7 @@
</p>
<p *ngIf="diffusion.processDate !== null" [title]="diffusion.processDate">
<ion-note *ngIf="diffusion.status === 'VAL'" class="valProcess">
{{'lang.'+diffusion.mode+'ProcessInfo' | translate}}
{{'lang.' + getProcessInfo(diffusion.mode) + 'ProcessInfo' | translate}}
{{diffusion.processDate}}
</ion-note>
<ion-note *ngIf="diffusion.status === 'REF'" class="refProcess">
......
......@@ -373,4 +373,16 @@ export class VisaWorkflowComponent implements OnInit {
this.openOtpModal(item, position, item.userId);
}
}
getProcessInfo(mode: string) {
const isOtpSign = /otp_sign_/g;
const isOtpvisa = /otp_visa_/g;
if (mode.match(isOtpSign) !== null) {
return 'sign';
} else if (mode.match(isOtpvisa) !== null) {
return 'visa';
} else {
return mode;
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment