From 1c75824134b590ded377f297c456c74c7057305c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 11 Sep 2020 21:14:58 +0100 Subject: [PATCH] Fix workflow editing state binding, fix transitions and fix select placeholder options --- .../workflow/SetupPanel/ParamInputs/ModelSelector.svelte | 2 +- .../workflow/SetupPanel/ParamInputs/RecordSelector.svelte | 8 +++++--- .../workflow/SetupPanel/WorkflowBlockSetup.svelte | 3 ++- .../workflow/WorkflowBuilder/WorkflowBuilder.svelte | 8 +------- .../workflow/WorkflowBuilder/flowchart/Arrow.svelte | 5 ----- .../workflow/WorkflowBuilder/flowchart/FlowChart.svelte | 4 ++-- 6 files changed, 11 insertions(+), 19 deletions(-) diff --git a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte index 968d142797..b600e87dc6 100644 --- a/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/ParamInputs/ModelSelector.svelte @@ -8,7 +8,7 @@
+
diff --git a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte index 68a280ffee..56f8175646 100644 --- a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte @@ -15,6 +15,7 @@ {#if Array.isArray(type)} {/if} diff --git a/packages/builder/src/components/workflow/WorkflowBuilder/WorkflowBuilder.svelte b/packages/builder/src/components/workflow/WorkflowBuilder/WorkflowBuilder.svelte index 0290a11a58..b6dabc55fd 100644 --- a/packages/builder/src/components/workflow/WorkflowBuilder/WorkflowBuilder.svelte +++ b/packages/builder/src/components/workflow/WorkflowBuilder/WorkflowBuilder.svelte @@ -4,8 +4,6 @@ import { notifier } from "builderStore/store/notifications" import Flowchart from "./flowchart/FlowChart.svelte" - let section - $: workflow = $workflowStore.selectedWorkflow && $workflowStore.selectedWorkflow.workflow $: workflowLive = workflow && workflow.live @@ -27,13 +25,9 @@ notifier.danger(`Workflow ${workflow.name} disabled.`) } } - - afterUpdate(() => { - section.scrollTo(0, section.scrollHeight) - }) -
+