make word list labels and delete icons in finalized description templates disabled

This commit is contained in:
Bernaldo Mihasi 2023-10-05 17:47:00 +03:00
parent 846405435c
commit 10d0f1fb0e
3 changed files with 2 additions and 5 deletions

View File

@ -30,7 +30,7 @@
<input matInput [formControl]="form.get('data').get('options').get(''+i).get('value')">
</mat-form-field>
<button mat-icon-button class="col-auto" (click)="deleteRow(i)" type="button"
[disabled]="this.form.disabled">
[disabled]="form.get('data').get('options').get(''+i).get('label').disabled || form.get('data').get('options').get(''+i).get('value').disabled">
<mat-icon>delete</mat-icon>
</button>
</div>

View File

@ -52,7 +52,7 @@
</div>
</div>
<div *ngIf="showDelete" class="col-auto align-self-center">
<button mat-icon-button type="button" class="deleteBtn" (click)="deleteCompositeField();">
<button mat-icon-button type="button" class="deleteBtn" (click)="deleteCompositeField();" [disabled]="form.disabled">
<mat-icon>delete</mat-icon>
</button>
</div>

View File

@ -9,9 +9,6 @@
"FieldSetEditorModel.extendedDescription",
"FieldSetEditorModel.additionalInformation",
"TextAreaFieldDataEditorModel.label",
"FreeTextFieldDataEditorModel.label",
"WordListFieldDataEditorModel.label",
"FieldDataOptionEditorModel.label",
"FieldSetEditorModel.schematics",
"FieldSetEditorModel.export"
]