mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
Fixed Related Dynamic Form Controls functionality after Angular 8 upgrade
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import {
|
||||
DynamicDatePickerModelConfig,
|
||||
DynamicFormArrayModelConfig,
|
||||
DynamicFormControlLayout,
|
||||
DynamicFormGroupModelConfig,
|
||||
DynamicSelectModelConfig,
|
||||
DynamicFormGroupModelConfig, DynamicFormControlLayout,
|
||||
MATCH_ENABLED,
|
||||
OR_OPERATOR,
|
||||
} from '@ng-dynamic-forms/core';
|
||||
|
||||
export const BITSTREAM_METADATA_FORM_GROUP_CONFIG: DynamicFormGroupModelConfig = {
|
||||
@@ -15,7 +18,7 @@ export const BITSTREAM_METADATA_FORM_GROUP_LAYOUT: DynamicFormControlLayout = {
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
label: 'col-sm-3'
|
||||
label: 'col-sm-3'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -52,8 +55,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePicke
|
||||
toggleIcon: 'far fa-calendar-alt',
|
||||
relations: [
|
||||
{
|
||||
match: 'ENABLE',
|
||||
operator: 'OR',
|
||||
match: MATCH_ENABLED,
|
||||
operator: OR_OPERATOR,
|
||||
when: []
|
||||
}
|
||||
],
|
||||
@@ -83,8 +86,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerM
|
||||
toggleIcon: 'far fa-calendar-alt',
|
||||
relations: [
|
||||
{
|
||||
match: 'ENABLE',
|
||||
operator: 'OR',
|
||||
match: MATCH_ENABLED,
|
||||
operator: OR_OPERATOR,
|
||||
when: []
|
||||
}
|
||||
],
|
||||
@@ -112,8 +115,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_GROUPS_CONFIG: DynamicSelectModelCo
|
||||
options: [],
|
||||
relations: [
|
||||
{
|
||||
match: 'ENABLE',
|
||||
operator: 'OR',
|
||||
match: MATCH_ENABLED,
|
||||
operator: OR_OPERATOR,
|
||||
when: []
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user