1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00
budibase/packages/builder/src/components/automation/AutomationBuilder/AutomationBuilder.svelte

17 lines
385 B
Svelte
Raw Normal View History

<script>
2021-03-16 03:00:34 +13:00
import { automationStore } from "builderStore"
2020-10-27 01:25:26 +13:00
import Flowchart from "./FlowChart/FlowChart.svelte"
$: automation = $automationStore.selectedAutomation?.automation
function onSelect(block) {
2020-10-28 04:28:13 +13:00
automationStore.update(state => {
state.selectedBlock = block
return state
})
}
</script>
{#if automation}
<Flowchart {automation} {onSelect} />
2021-03-16 03:00:34 +13:00
{/if}