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

View File

@ -52,7 +52,7 @@
</div> </div>
</div> </div>
<div *ngIf="showDelete" class="col-auto align-self-center"> <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> <mat-icon>delete</mat-icon>
</button> </button>
</div> </div>

View File

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