+
Version
@@ -184,7 +188,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 +204,11 @@ export default {
this.messageVariant = "danger";
},
onAttributes(data) {
- this.services.updateWorkflow(this.id, data).catch((error) => {
- this.onError(error);
- });
+ if (!this.id.includes("workflow-editor")) {
+ 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 e2c6460a79ef..871521c935f8 100644
--- a/client/src/components/Workflow/Editor/Index.vue
+++ b/client/src/components/Workflow/Editor/Index.vue
@@ -18,7 +18,7 @@
title="Save As a New Workflow"
ok-title="Save"
cancel-title="Cancel"
- @ok="doSaveAs">
+ @ok="doSaveAs(false)">
@@ -41,7 +41,8 @@