Remove redundant test workflow tab
This commit is contained in:
parent
1c75824134
commit
99d0bebc0e
|
@ -29,7 +29,7 @@
|
|||
}
|
||||
|
||||
function testWorkflow() {
|
||||
testResult = "PASSED"
|
||||
testResult = "Workflow passed"
|
||||
}
|
||||
|
||||
async function saveWorkflow() {
|
||||
|
@ -52,38 +52,11 @@
|
|||
}}>
|
||||
Setup
|
||||
</span>
|
||||
{#if !$workflowStore.selectedBlock}
|
||||
<span
|
||||
class="test-tab"
|
||||
class:selected={selectedTab === 'TEST'}
|
||||
on:click={() => (selectedTab = 'TEST')}>
|
||||
Test
|
||||
</span>
|
||||
{/if}
|
||||
</header>
|
||||
{#if selectedTab === 'TEST'}
|
||||
<div class="bb-margin-m">
|
||||
{#if testResult}
|
||||
<button
|
||||
transition:fade
|
||||
class:passed={testResult === 'PASSED'}
|
||||
class:failed={testResult === 'FAILED'}
|
||||
class="test-result">
|
||||
{testResult}
|
||||
</button>
|
||||
{/if}
|
||||
<Button secondary wide on:click={testWorkflow}>Test Workflow</Button>
|
||||
</div>
|
||||
{/if}
|
||||
{#if selectedTab === 'SETUP'}
|
||||
{#if $workflowStore.selectedBlock}
|
||||
<WorkflowBlockSetup bind:block={$workflowStore.selectedBlock} />
|
||||
<div class="buttons">
|
||||
<Button
|
||||
green
|
||||
wide
|
||||
data-cy="save-workflow-setup"
|
||||
on:click={saveWorkflow}>
|
||||
<Button green wide data-cy="save-workflow-setup" on:click={saveWorkflow}>
|
||||
Save Workflow
|
||||
</Button>
|
||||
<Button red wide on:click={deleteWorkflowBlock}>Delete Block</Button>
|
||||
|
@ -91,8 +64,21 @@
|
|||
{:else if $workflowStore.selectedWorkflow}
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="block-label">Workflow: {workflow.name}</div>
|
||||
<div class="block-label">
|
||||
Workflow
|
||||
<b>{workflow.name}</b>
|
||||
</div>
|
||||
</div>
|
||||
{#if testResult}
|
||||
<button
|
||||
transition:fade|local
|
||||
class:passed={true}
|
||||
class:failed={false}
|
||||
class="test-result">
|
||||
{testResult}
|
||||
</button>
|
||||
{/if}
|
||||
<Button secondary wide on:click={testWorkflow}>Test Workflow</Button>
|
||||
<div class="buttons">
|
||||
<Button
|
||||
green
|
||||
|
@ -105,7 +91,6 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</section>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in New Issue