From 99d0bebc0e47fa6b38c3674dbe5836cb97a4b35d 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}