mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-34972 Test PR for adf link (#10861)
This commit is contained in:
@@ -358,7 +358,7 @@ export class FormModel implements ProcessFormModel {
|
|||||||
this.handleSectionField(field, formFieldModel);
|
this.handleSectionField(field, formFieldModel);
|
||||||
} else if (this.isContainerField(field)) {
|
} else if (this.isContainerField(field)) {
|
||||||
this.handleContainerField(field, formFieldModel);
|
this.handleContainerField(field, formFieldModel);
|
||||||
} else {
|
} else if (this.isFormField(field)) {
|
||||||
this.handleSingleField(field, formFieldModel);
|
this.handleSingleField(field, formFieldModel);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -368,6 +368,10 @@ export class FormModel implements ProcessFormModel {
|
|||||||
return field instanceof ContainerModel;
|
return field instanceof ContainerModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private isFormField(field: ContainerModel | FormFieldModel): field is FormFieldModel {
|
||||||
|
return field instanceof FormFieldModel;
|
||||||
|
}
|
||||||
|
|
||||||
private isSectionField(field: ContainerModel | FormFieldModel): field is FormFieldModel {
|
private isSectionField(field: ContainerModel | FormFieldModel): field is FormFieldModel {
|
||||||
return field.type === FormFieldTypes.SECTION;
|
return field.type === FormFieldTypes.SECTION;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user