mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
[TLC-254] If configService present, set typeField in constructor
This commit is contained in:
@@ -73,6 +73,12 @@ export class FormBuilderService extends DynamicFormService {
|
||||
super(componentService, validationService);
|
||||
this.formModels = new Map();
|
||||
this.formGroups = new Map();
|
||||
// If optional config service was passed, perform an initial set of type field (default dc_type) for type binds
|
||||
if (hasValue(this.configService)) {
|
||||
this.setTypeBindFieldFromConfig();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
createDynamicFormControlEvent(control: FormControl, group: FormGroup, model: DynamicFormControlModel, type: string): DynamicFormControlEvent {
|
||||
|
Reference in New Issue
Block a user