diff --git a/src/app/_dialogs/workflow-spec-category-dialog/workflow-spec-category-dialog.component.ts b/src/app/_dialogs/workflow-spec-category-dialog/workflow-spec-category-dialog.component.ts
index 6506d61..ae890f8 100644
--- a/src/app/_dialogs/workflow-spec-category-dialog/workflow-spec-category-dialog.component.ts
+++ b/src/app/_dialogs/workflow-spec-category-dialog/workflow-spec-category-dialog.component.ts
@@ -19,13 +19,12 @@ export class WorkflowSpecCategoryDialogComponent {
{
key: 'id',
type: 'input',
- defaultValue: this.data.id || uuidv4(),
+ defaultValue: this.data.id,
templateOptions: {
label: 'ID',
- placeholder: 'UUID of workflow specification',
- description: 'This is an autogenerated unique ID and is not editable.',
+ type: 'number',
+ placeholder: 'ID of workflow spec category',
required: true,
- disabled: true,
},
},
{
@@ -34,7 +33,7 @@ export class WorkflowSpecCategoryDialogComponent {
defaultValue: this.data.name,
templateOptions: {
label: 'Name',
- placeholder: 'Name of workflow specification',
+ placeholder: 'Name of workflow spec category',
description: 'Enter a name, in lowercase letters, separated by underscores, that is easy for you to remember.' +
'It will be converted to all_lowercase_with_underscores when you save.',
required: true,
@@ -46,23 +45,12 @@ export class WorkflowSpecCategoryDialogComponent {
defaultValue: this.data.display_name,
templateOptions: {
label: 'Display Name',
- placeholder: 'Title of the workflow specification',
- description: 'This is a human readable title for the workflow specification,' +
+ placeholder: 'Title of the workflow spec category',
+ description: 'This is a human-readable title for the workflow spec category,' +
'which should be easy for others to read and remember.',
required: true,
},
},
- {
- key: 'description',
- type: 'textarea',
- defaultValue: this.data.description,
- templateOptions: {
- label: 'Description',
- placeholder: 'Description of workflow specification',
- description: 'Write a few sentences explaining to users why this workflow exists and what it should be used for.',
- required: true,
- },
- },
];
constructor(
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 7413e68..d741888 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
@@ -47,7 +47,7 @@ export class WorkflowSpecDialogComponent {
templateOptions: {
label: 'Display Name',
placeholder: 'Title of the workflow specification',
- description: 'This is a human readable title for the workflow specification,' +
+ description: 'This is a human-readable title for the workflow specification,' +
'which should be easy for others to read and remember.',
required: true,
},
diff --git a/src/app/_interfaces/dialog-data.ts b/src/app/_interfaces/dialog-data.ts
index 79b061a..f525b32 100644
--- a/src/app/_interfaces/dialog-data.ts
+++ b/src/app/_interfaces/dialog-data.ts
@@ -21,7 +21,7 @@ export interface WorkflowSpecDialogData {
}
export interface WorkflowSpecCategoryDialogData {
- id: string;
+ id: number;
name: string;
display_name: string;
}
diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.html b/src/app/workflow-spec-list/workflow-spec-list.component.html
index 5a961d4..e1af6d9 100644
--- a/src/app/workflow-spec-list/workflow-spec-list.component.html
+++ b/src/app/workflow-spec-list/workflow-spec-list.component.html
@@ -6,7 +6,7 @@
library_add
Add new workflow specification
-