Skip to content
Snippets Groups Projects
Verified Commit a2804c21 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #14973 TIME 0:20 translate attachment status

parent a7a60503
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,7 @@
</div>
<div class="attachment-form-item">
<mat-form-field class="input-form">
<input matInput placeholder="{{'lang.status' | translate}}" [formControl]="attachment['status']"
[value]="this.translate.instant('lang.attachment_' + attachment['status'].value)">
<input matInput placeholder="{{'lang.status' | translate}}" [formControl]="attachment['status']">
</mat-form-field>
<div class="fieldState">
<i class="fas fa-asterisk noMandatory"></i>
......
......@@ -128,7 +128,7 @@ export class AttachmentPageComponent implements OnInit {
chrono: new FormControl({ value: data.chrono, disabled: true }),
originId: new FormControl({ value: data.originId, disabled: true }),
resIdMaster: new FormControl({ value: data.resIdMaster, disabled: true }, [Validators.required]),
status: new FormControl({ value: data.status, disabled: true }, [Validators.required]),
status: new FormControl({ value: this.translate.instant('lang.attachment_' + data.status), disabled: true }, [Validators.required]),
relation: new FormControl({ value: data.relation, disabled: true }, [Validators.required]),
title: new FormControl({ value: data.title, disabled: !this.editMode }, [Validators.required]),
recipient: new FormControl({ value: contact, disabled: !this.editMode }),
......
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