From 43856e968ebd8b78921d90e52f2899231d882868 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 4 Jun 2020 20:23:46 +0100 Subject: [PATCH] moving workflow button --- .../workflow/SetupPanel/SetupPanel.svelte | 13 +++++++++++++ .../WorkflowPanel/WorkflowList/WorkflowList.svelte | 14 -------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte index 893ed46a88..456505a4a8 100644 --- a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte @@ -45,6 +45,15 @@ function testWorkflow() { testResult = "PASSED" } + + async function saveWorkflow() { + const workflow = $workflowStore.currentWorkflow.workflow + await workflowStore.actions.save({ + instanceId: $backendUiStore.selectedDatabase._id, + workflow, + }) + notifier.success(`Workflow ${workflow.name} saved.`) + }
@@ -87,6 +96,9 @@ {#if workflowBlock}
+ - {/if}