From ca866378d0456f47023407d4b4371bf4c55a41f6 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 1 Sep 2021 15:23:40 +0100 Subject: [PATCH] add splash screen to automation --- .../FlowChart/FlowChart.svelte | 6 --- .../AutomationPanel/AutomationPanel.svelte | 3 +- .../app/[application]/automate/_layout.svelte | 50 ++++++++++++++++++- .../app/[application]/automate/index.svelte | 10 ---- 4 files changed, 50 insertions(+), 19 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index e960271b87..16ef04a7ca 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -19,7 +19,6 @@ } -{#if !blocks.length}Add a trigger to your automation to get started{/if}
{#each blocks as block, idx (block.id)}
diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte index dbcbc33db0..b2773ae455 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte @@ -2,7 +2,8 @@ import AutomationList from "./AutomationList.svelte" import CreateAutomationModal from "./CreateAutomationModal.svelte" import { Icon, Modal, Tabs, Tab } from "@budibase/bbui" - let modal + + export let modal
diff --git a/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte index d1aaeb0240..bc04548d8f 100644 --- a/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/automate/_layout.svelte @@ -1,22 +1,51 @@
- + {#if automation} + + {:else} +
+
+ + + + + You have no automations + Let's fix that. Call the bots! + + +
+
+ {/if}
{#if $automationStore.selectedAutomation}
{/if} + + +
diff --git a/packages/builder/src/pages/builder/app/[application]/automate/index.svelte b/packages/builder/src/pages/builder/app/[application]/automate/index.svelte index d48bd36e59..e5dea10e0b 100644 --- a/packages/builder/src/pages/builder/app/[application]/automate/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/automate/index.svelte @@ -15,13 +15,3 @@ } }) - -Create your first automation to get started - -