no message

This commit is contained in:
Diamantis Tziotzios 2024-02-27 10:01:45 +02:00
parent 57908f342b
commit 90bcc40dde
1 changed files with 9 additions and 5 deletions

View File

@ -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: {