moving workflow button
This commit is contained in:
parent
06542e4244
commit
43856e968e
|
@ -45,6 +45,15 @@
|
||||||
function testWorkflow() {
|
function testWorkflow() {
|
||||||
testResult = "PASSED"
|
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.`)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
@ -87,6 +96,9 @@
|
||||||
{#if workflowBlock}
|
{#if workflowBlock}
|
||||||
<WorkflowBlockSetup {workflowBlock} />
|
<WorkflowBlockSetup {workflowBlock} />
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<button class="workflow-button hoverable" on:click={saveWorkflow}>
|
||||||
|
Save Workflow
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
class="delete-workflow-button hoverable"
|
class="delete-workflow-button hoverable"
|
||||||
on:click={deleteWorkflowBlock}>
|
on:click={deleteWorkflowBlock}>
|
||||||
|
@ -241,6 +253,7 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 2ms;
|
transition: all 2ms;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workflow-button:hover {
|
.workflow-button:hover {
|
||||||
|
|
|
@ -25,15 +25,6 @@
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
workflowStore.actions.fetch($backendUiStore.selectedDatabase._id)
|
workflowStore.actions.fetch($backendUiStore.selectedDatabase._id)
|
||||||
})
|
})
|
||||||
|
|
||||||
async function saveWorkflow() {
|
|
||||||
const workflow = $workflowStore.currentWorkflow.workflow
|
|
||||||
await workflowStore.actions.save({
|
|
||||||
instanceId: $backendUiStore.selectedDatabase._id,
|
|
||||||
workflow,
|
|
||||||
})
|
|
||||||
notifier.success(`Workflow ${workflow.name} saved.`)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
@ -52,11 +43,6 @@
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
{#if $workflowStore.currentWorkflow}
|
|
||||||
<button class="new-workflow-button hoverable" on:click={saveWorkflow}>
|
|
||||||
Save Workflow
|
|
||||||
</button>
|
|
||||||
{/if}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue