Dataset template editor: On multiplicity changed, reset multiplicity values including table view and placeholder.
This commit is contained in:
parent
ef0816524f
commit
681f73b865
|
@ -360,13 +360,19 @@ export class DatasetProfileEditorCompositeFieldComponent extends BaseComponent i
|
|||
|
||||
const minControl = multiplicity.get('min');
|
||||
const maxControl = multiplicity.get('max');
|
||||
const placeholder = multiplicity.get('placeholder');
|
||||
const tableView = multiplicity.get('tableView');
|
||||
|
||||
if (isMultiplicityEnabled.checked) {
|
||||
minControl.setValue(0);
|
||||
maxControl.setValue(1);
|
||||
placeholder.setValue('');
|
||||
tableView.setValue(false);
|
||||
}else{
|
||||
minControl.setValue(0);
|
||||
maxControl.setValue(0);
|
||||
placeholder.setValue(null);
|
||||
tableView.setValue(null);
|
||||
}
|
||||
|
||||
this.isMultiplicityEnabled = isMultiplicityEnabled.checked;
|
||||
|
|
Loading…
Reference in New Issue