diff --git a/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts b/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts index f4d0a32..c87e32b 100644 --- a/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts +++ b/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts @@ -89,7 +89,16 @@ export class WorkflowSpecDialogComponent { description: 'Write a few sentences explaining to users why this workflow exists and what it should be used for.', required: true, }, - } + }, + { + key: 'standalone', + type: 'checkbox', + defaultValue: this.data.standalone, + templateOptions: { + label: 'Standalone', + description: 'Is this a standalone workflow?', + }, + }, ]; }); } diff --git a/src/app/_interfaces/dialog-data.ts b/src/app/_interfaces/dialog-data.ts index 8eb5ffa..82dcb51 100644 --- a/src/app/_interfaces/dialog-data.ts +++ b/src/app/_interfaces/dialog-data.ts @@ -25,6 +25,7 @@ export interface WorkflowSpecDialogData { description: string; category_id: number; display_order: number; + standalone: boolean; } export interface WorkflowSpecCategoryDialogData { diff --git a/src/app/workflow-spec-card/workflow-spec-card.component.html b/src/app/workflow-spec-card/workflow-spec-card.component.html index 271c9bb..78ff917 100644 --- a/src/app/workflow-spec-card/workflow-spec-card.component.html +++ b/src/app/workflow-spec-card/workflow-spec-card.component.html @@ -19,6 +19,9 @@
ID
{{workflowSpec.id}}
Name
{{workflowSpec.name}}
Description
{{workflowSpec.description}}
+
Standalone
+
True
+
False

Workflow Spec Files

diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts index 51a4773..7953c9b 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts @@ -141,6 +141,7 @@ describe('WorkflowSpecListComponent', () => { description: '', category_id: 0, display_order: 0, + standalone: false }; const _upsertWorkflowSpecificationSpy = spyOn((component as any), '_upsertWorkflowSpecification') diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index a232c25..b324ef9 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -114,6 +114,7 @@ export class WorkflowSpecListComponent implements OnInit { description: selectedSpec ? selectedSpec.description : '', category_id: selectedSpec ? selectedSpec.category_id : null, display_order: hasDisplayOrder ? selectedSpec.display_order : 0, + standalone: selectedSpec ? selectedSpec.standalone : null, }; @@ -263,6 +264,7 @@ export class WorkflowSpecListComponent implements OnInit { description: data.description, category_id: data.category_id, display_order: data.display_order, + standalone: data.standalone }; if (isNew) {