no message
This commit is contained in:
parent
57908f342b
commit
90bcc40dde
|
@ -74,7 +74,7 @@ export class PrefillingSourceEditorModel extends BaseEditorModel implements Pref
|
|||
export class PrefillingSourceDefinitionEditorModel implements PrefillingSourceDefinitionPersist {
|
||||
fields: PrefillingSourceDefinitionFieldEditorModel[] = [];
|
||||
searchConfiguration: ExternalFetcherBaseSourceConfigurationEditorModel = new ExternalFetcherBaseSourceConfigurationEditorModel();
|
||||
getConfiguration: ExternalFetcherBaseSourceConfigurationEditorModel = new ExternalFetcherBaseSourceConfigurationEditorModel();
|
||||
getConfiguration: ExternalFetcherBaseSourceConfigurationEditorModel;
|
||||
getEnabled = false;
|
||||
|
||||
protected formBuilder: UntypedFormBuilder = new UntypedFormBuilder();
|
||||
|
@ -108,7 +108,7 @@ export class PrefillingSourceDefinitionEditorModel implements PrefillingSourceDe
|
|||
});
|
||||
}
|
||||
|
||||
return this.formBuilder.group({
|
||||
const form: UntypedFormGroup = this.formBuilder.group({
|
||||
fields: this.formBuilder.array(
|
||||
(this.fields ?? []).map(
|
||||
(item, index) => item.buildForm({
|
||||
|
@ -119,11 +119,15 @@ export class PrefillingSourceDefinitionEditorModel implements PrefillingSourceDe
|
|||
searchConfiguration: this.searchConfiguration.buildForm({
|
||||
rootPath: `${rootPath}searchConfiguration.`
|
||||
}),
|
||||
getConfiguration: this.getConfiguration.buildForm({
|
||||
rootPath: `${rootPath}getConfiguration.`
|
||||
}),
|
||||
getEnabled: [{ value: this.getEnabled, disabled: disabled }, context.getValidation('getEnabled').validators],
|
||||
});
|
||||
|
||||
if (this.getConfiguration != null) {
|
||||
form.addControl('getConfiguration', this.getConfiguration.buildForm({
|
||||
rootPath: `${rootPath}getConfiguration.`
|
||||
}));
|
||||
}
|
||||
return form;
|
||||
}
|
||||
|
||||
static createValidationContext(params: {
|
||||
|
|
Loading…
Reference in New Issue