From 085789ef1d526f4d9cd60142b6a75151d700795f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 11 Sep 2020 21:22:46 +0100 Subject: [PATCH] Remove redundant test workflow tab --- .../workflow/SetupPanel/SetupPanel.svelte | 59 +++++++------------ 1 file changed, 22 insertions(+), 37 deletions(-) diff --git a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte index 0d0f2b7f89..09478d5e13 100644 --- a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte @@ -29,7 +29,7 @@ } function testWorkflow() { - testResult = "PASSED" + testResult = "Workflow passed" } async function saveWorkflow() { @@ -52,32 +52,33 @@ }}> Setup - {#if !$workflowStore.selectedBlock} - (selectedTab = 'TEST')}> - Test - - {/if} - {#if selectedTab === 'TEST'} -
+ {#if $workflowStore.selectedBlock} + +
+ + +
+ {:else if $workflowStore.selectedWorkflow} +
+
+
+ Workflow + {workflow.name} +
+
{#if testResult} {/if} -
- {/if} - {#if selectedTab === 'SETUP'} - {#if $workflowStore.selectedBlock} -
- +
- {:else if $workflowStore.selectedWorkflow} -
-
-
Workflow: {workflow.name}
-
-
- - -
-
- {/if} +
{/if}