Version
@@ -30,6 +34,7 @@
These notes will be visible when this workflow is viewed.
@@ -184,7 +189,7 @@ export default {
onTags(tags) {
this.tagsCurrent = tags;
this.onAttributes({ tags });
- this.$emit("input", this.tagsCurrent);
+ this.$emit("onTags", this.tagsCurrent);
},
onVersion() {
this.$emit("onVersion", this.versionCurrent);
@@ -200,9 +205,11 @@ export default {
this.messageVariant = "danger";
},
onAttributes(data) {
- this.services.updateWorkflow(this.id, data).catch((error) => {
- this.onError(error);
- });
+ if (this.id !== "new_temp_workflow") {
+ this.services.updateWorkflow(this.id, data).catch((error) => {
+ this.onError(error);
+ });
+ }
},
},
};
diff --git a/client/src/components/Workflow/Editor/Index.test.ts b/client/src/components/Workflow/Editor/Index.test.ts
index 135ddf7b914a..62e9673f3673 100644
--- a/client/src/components/Workflow/Editor/Index.test.ts
+++ b/client/src/components/Workflow/Editor/Index.test.ts
@@ -47,9 +47,9 @@ describe("Index", () => {
});
wrapper = shallowMount(Index, {
propsData: {
- id: "workflow_id",
+ workflowId: "workflow_id",
initialVersion: 1,
- tags: ["moo", "cow"],
+ workflowTags: ["moo", "cow"],
moduleSections: [],
dataManagers: [],
workflows: [],
diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue
index b28414828809..cd82d0bf4339 100644
--- a/client/src/components/Workflow/Editor/Index.vue
+++ b/client/src/components/Workflow/Editor/Index.vue
@@ -41,7 +41,8 @@