diff --git a/src/frontend/app/document/visa-workflow/visa-workflow.component.html b/src/frontend/app/document/visa-workflow/visa-workflow.component.html index bf25501bfef3e71e72147506e316e2e65ca06a89..23e527f9ae897387ef15e5895419f8ce8b16d904 100644 --- a/src/frontend/app/document/visa-workflow/visa-workflow.component.html +++ b/src/frontend/app/document/visa-workflow/visa-workflow.component.html @@ -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"> diff --git a/src/frontend/app/document/visa-workflow/visa-workflow.component.ts b/src/frontend/app/document/visa-workflow/visa-workflow.component.ts index 2d45365d5c79f80aab6c32205400682dfb278f77..f14c4cae0cfcb2c4ada4961bcd4ef6de55aa7723 100644 --- a/src/frontend/app/document/visa-workflow/visa-workflow.component.ts +++ b/src/frontend/app/document/visa-workflow/visa-workflow.component.ts @@ -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; + } + } }