From 68f005e3ba9864bbab613b00f632a33a13572c19 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sun, 27 Dec 2020 20:58:25 -0500 Subject: [PATCH] Rework renaming in the workflow editor to unify things into Index.vue --- .../components/Workflow/Editor/Attributes.vue | 14 +++---- .../src/components/Workflow/Editor/Index.vue | 13 +++--- .../Workflow/Editor/modules/model.js | 3 +- .../selenium/test_workflow_editor.py | 42 +++++++++++++++---- 4 files changed, 51 insertions(+), 21 deletions(-) diff --git a/client/src/components/Workflow/Editor/Attributes.vue b/client/src/components/Workflow/Editor/Attributes.vue index b12ecccf30a..53e3b4be742 100644 --- a/client/src/components/Workflow/Editor/Attributes.vue +++ b/client/src/components/Workflow/Editor/Attributes.vue @@ -6,7 +6,7 @@
Name - +
Version @@ -115,6 +115,7 @@ export default { tagsCurrent: this.tags, versionCurrent: this.version, annotationCurrent: this.annotation, + nameCurrent: this.name, }; }, created() { @@ -163,8 +164,11 @@ export default { } this.creatorCurrent = creator; }, - annotation(newAnnotation) { - this.annotationCurrent = newAnnotation; + annotation() { + this.annotationCurrent = this.annotation; + }, + name() { + this.nameCurrent = this.name; }, }, methods: { @@ -172,10 +176,6 @@ export default { this.tagsCurrent = tags; this.onAttributes({ tags }); }, - onRename(name) { - this.onAttributes({ name }); - this.$emit("onRename", name); - }, onVersion() { this.$emit("onVersion", this.versionCurrent); }, diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 9b496230545..837c3bbb88d 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -100,11 +100,12 @@