Remove redundant test workflow tab
This commit is contained in:
parent
731be7da2e
commit
085789ef1d
|
@ -29,7 +29,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function testWorkflow() {
|
function testWorkflow() {
|
||||||
testResult = "PASSED"
|
testResult = "Workflow passed"
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveWorkflow() {
|
async function saveWorkflow() {
|
||||||
|
@ -52,32 +52,33 @@
|
||||||
}}>
|
}}>
|
||||||
Setup
|
Setup
|
||||||
</span>
|
</span>
|
||||||
{#if !$workflowStore.selectedBlock}
|
|
||||||
<span
|
|
||||||
class="test-tab"
|
|
||||||
class:selected={selectedTab === 'TEST'}
|
|
||||||
on:click={() => (selectedTab = 'TEST')}>
|
|
||||||
Test
|
|
||||||
</span>
|
|
||||||
{/if}
|
|
||||||
</header>
|
</header>
|
||||||
{#if selectedTab === 'TEST'}
|
{#if $workflowStore.selectedBlock}
|
||||||
<div class="bb-margin-m">
|
<WorkflowBlockSetup bind:block={$workflowStore.selectedBlock} />
|
||||||
|
<div class="buttons">
|
||||||
|
<Button green wide data-cy="save-workflow-setup" on:click={saveWorkflow}>
|
||||||
|
Save Workflow
|
||||||
|
</Button>
|
||||||
|
<Button red wide on:click={deleteWorkflowBlock}>Delete Block</Button>
|
||||||
|
</div>
|
||||||
|
{:else if $workflowStore.selectedWorkflow}
|
||||||
|
<div class="panel">
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="block-label">
|
||||||
|
Workflow
|
||||||
|
<b>{workflow.name}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{#if testResult}
|
{#if testResult}
|
||||||
<button
|
<button
|
||||||
transition:fade
|
transition:fade|local
|
||||||
class:passed={testResult === 'PASSED'}
|
class:passed={true}
|
||||||
class:failed={testResult === 'FAILED'}
|
class:failed={false}
|
||||||
class="test-result">
|
class="test-result">
|
||||||
{testResult}
|
{testResult}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
<Button secondary wide on:click={testWorkflow}>Test Workflow</Button>
|
<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">
|
<div class="buttons">
|
||||||
<Button
|
<Button
|
||||||
green
|
green
|
||||||
|
@ -86,25 +87,9 @@
|
||||||
on:click={saveWorkflow}>
|
on:click={saveWorkflow}>
|
||||||
Save Workflow
|
Save Workflow
|
||||||
</Button>
|
</Button>
|
||||||
<Button red wide on:click={deleteWorkflowBlock}>Delete Block</Button>
|
<Button red wide on:click={deleteWorkflow}>Delete Workflow</Button>
|
||||||
</div>
|
</div>
|
||||||
{:else if $workflowStore.selectedWorkflow}
|
</div>
|
||||||
<div class="panel">
|
|
||||||
<div class="panel-body">
|
|
||||||
<div class="block-label">Workflow: {workflow.name}</div>
|
|
||||||
</div>
|
|
||||||
<div class="buttons">
|
|
||||||
<Button
|
|
||||||
green
|
|
||||||
wide
|
|
||||||
data-cy="save-workflow-setup"
|
|
||||||
on:click={saveWorkflow}>
|
|
||||||
Save Workflow
|
|
||||||
</Button>
|
|
||||||
<Button red wide on:click={deleteWorkflow}>Delete Workflow</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue