From 78337a4a0fdeb5bf2831fa3f6926d25196192f0b Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 26 Aug 2022 12:33:50 +0200 Subject: [PATCH] WIP node dragging without jQuery --- .../src/components/Workflow/Editor/Index.vue | 7 ++- .../src/components/Workflow/Editor/Node.vue | 56 ++++++++++--------- .../components/Workflow/Editor/NodeOutput.vue | 2 +- .../Workflow/Editor/WorkflowGraph.vue | 2 +- .../Workflow/Editor/modules/dragging.js | 39 ++++++------- 5 files changed, 53 insertions(+), 53 deletions(-) diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index fb9f48e6479..d0414f39a65 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -75,7 +75,8 @@ @onCreate="onInsertTool" @onChange="onChange" @onDisconnect="onDisconnect" - @onRemove="onRemove"> + @onRemove="onRemove" + @onUpdateStep="onUpdateStep"> @@ -360,6 +361,10 @@ export default { hide_modal(); }, methods: { + onUpdateStep(stepId, step) { + console.log("updating step"); + this.steps[stepId] = step; + }, onDisconnect(nodeId, inputName) { delete this.steps[nodeId].input_connections[inputName]; }, diff --git a/client/src/components/Workflow/Editor/Node.vue b/client/src/components/Workflow/Editor/Node.vue index f6ffbdd2f0e..f06b1507855 100644 --- a/client/src/components/Workflow/Editor/Node.vue +++ b/client/src/components/Workflow/Editor/Node.vue @@ -1,5 +1,16 @@