|
|
|
@ -75,13 +75,15 @@ export class FieldComponent { |
|
|
|
this.isEditable = this.field.canUpdate; |
|
|
|
|
|
|
|
this.editForm = new EditFieldForm(this.field.properties); |
|
|
|
this.editForm.load(this.field.properties); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public toggleEditing() { |
|
|
|
this.isEditing = !this.isEditing; |
|
|
|
|
|
|
|
this.editForm.load(this.field.properties); |
|
|
|
if (this.isEditing) { |
|
|
|
this.editForm.load(this.field.properties); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public deleteField() { |
|
|
|
|