fix readonly attribute

This commit is contained in:
Denys Vuika
2019-09-20 13:31:31 +01:00
parent 89788afe58
commit 7a3fdfb490

View File

@@ -1,6 +1,6 @@
<h1 mat-dialog-title>{{ title | translate }}</h1> <h1 mat-dialog-title>{{ title | translate }}</h1>
<mat-dialog-content> <mat-dialog-content>
<textarea [(ngModel)]="value" [attr.readonly]="!editable"></textarea> <textarea [(ngModel)]="value" [attr.readonly]="!editable ? true : null"></textarea>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions align="end"> <mat-dialog-actions align="end">