Commit 6ad51809 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16628 TIME 0:10 disable input if recipientDisabled is true

parent a38ad335
......@@ -31,7 +31,7 @@
<input [formControl]="recipientsInput" #recipientsField [matChipInputFor]="recipientsList"
[matChipInputSeparatorKeyCodes]="separatorKeysCodes" [matChipInputAddOnBlur]="true"
(matChipInputTokenEnd)="add($event, 'recipients')" [matAutocomplete]="autoEmails"
(focus)="resetAutocomplete()" (paste)="onPaste($event,'recipients')" [attr.disabled]="recipientDisabled">
(focus)="resetAutocomplete()" (paste)="onPaste($event,'recipients')" [readonly]="recipientDisabled" [attr.disabled]="recipientDisabled">
</mat-chip-list>
<mat-autocomplete #autoEmails="matAutocomplete" (optionSelected)="addEmail($event.option.value, 'recipients')">
<mat-option *ngFor="let option of filteredEmails | async" [value]="option">
......
......@@ -69,7 +69,7 @@ export class MailEditorComponent implements OnInit, OnDestroy {
emailSubject: string = '';
emailStatus: string = 'WAITING';
recipientsInput: FormControl = new FormControl();
recipientsInput: FormControl = new FormControl({disabled: this.recipientDisabled});
filteredEmails: Observable<string[]>;
emailSignListForm = new FormControl();
......@@ -115,7 +115,6 @@ export class MailEditorComponent implements OnInit, OnDestroy {
) { }
async ngOnInit() {
if (this.readonly) {
this.setReadonly();
}
......
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