Merge pull request #97 from sartography/bug/workflow_menu_433

Removes 'required' property from checkboxes, makes them false by default
This commit is contained in:
Dan Funk 2021-09-09 13:27:24 -04:00 committed by GitHub
commit e78ab6b430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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