diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 182dc05823e..33874ac33e6 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -158,6 +158,7 @@ activityBar.value?.isActiveSideBar("workflow-editor-report")); const parameters = ref(null); @@ -483,6 +485,7 @@ export default { id, name, parameters, + workflowGraph, ensureParametersSet, showAttributes, setName, @@ -996,6 +999,8 @@ export default { await this.resetStores(); this.onWorkflowMessage("Loading workflow...", "progress"); + console.log("loading"); + try { const data = await this.lastQueue.enqueue(loadWorkflow, { id, version }); await fromSimple(id, data); @@ -1003,6 +1008,11 @@ export default { } catch (e) { this.onWorkflowError("Loading workflow failed...", e); } + + await until(() => this.datatypesMapperLoading).toBe(false); + await nextTick(); + + this.workflowGraph.fitWorkflow(); } }, onLicense(license) { diff --git a/client/src/components/Workflow/Editor/WorkflowGraph.vue b/client/src/components/Workflow/Editor/WorkflowGraph.vue index b0a27f1b623..91392ae14bb 100644 --- a/client/src/components/Workflow/Editor/WorkflowGraph.vue +++ b/client/src/components/Workflow/Editor/WorkflowGraph.vue @@ -1,10 +1,168 @@ + + -