Removes 'required' property from checkboxes, makes them false by default

This commit is contained in:
Leashys 2021-08-19 11:38:13 -04:00
parent 1fbe01c3af
commit 1db4c6c569

View File

@ -91,22 +91,20 @@ export class WorkflowSpecDialogComponent {
{
key: 'standalone',
type: 'checkbox',
defaultValue: this.data.standalone,
defaultValue: false,
templateOptions: {
label: 'Standalone',
description: 'Is this a standalone workflow?',
required: true,
indeterminate: false,
},
},
{
key: 'library',
type: 'checkbox',
defaultValue: this.data.library,
defaultValue: false,
templateOptions: {
label: 'Library',
description: 'Is this a library workflow?',
required: true,
indeterminate: false,
},
},
@ -115,6 +113,7 @@ export class WorkflowSpecDialogComponent {
}
onNoClick() {
console.log('form model : ', this.model);
this.dialogRef.close();
}