From 4e85caa7b0927f4f90fe9574055725f46f283b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 15 Mar 2021 12:53:44 +0100 Subject: [PATCH] wip: work on routing in automation tab --- .../AutomationPanel/AutomationList.svelte | 5 ++++- .../automate/[automation]/_layout.svelte | 13 +++++++++++-- .../pages/[application]/automate/index.svelte | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte index c4a39d69b9..f7ca959979 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte @@ -9,6 +9,9 @@ onMount(() => { automationStore.actions.fetch() }) + function selectAutomation(automation) { + automationStore.actions.select(automation) + }
@@ -18,7 +21,7 @@ icon="ri-stackshare-line" text={automation.name} selected={automation._id === selectedAutomationId} - on:click={() => automationStore.actions.select(automation)}> + on:click={() => selectAutomation(automation)}> {/each} diff --git a/packages/builder/src/pages/[application]/automate/[automation]/_layout.svelte b/packages/builder/src/pages/[application]/automate/[automation]/_layout.svelte index 28234decc3..ce6917df6b 100644 --- a/packages/builder/src/pages/[application]/automate/[automation]/_layout.svelte +++ b/packages/builder/src/pages/[application]/automate/[automation]/_layout.svelte @@ -1,6 +1,15 @@ + + diff --git a/packages/builder/src/pages/[application]/automate/index.svelte b/packages/builder/src/pages/[application]/automate/index.svelte index 1a15ed48c6..8ef6090d90 100644 --- a/packages/builder/src/pages/[application]/automate/index.svelte +++ b/packages/builder/src/pages/[application]/automate/index.svelte @@ -1,5 +1,21 @@