From 92c4c4ace0f36c2468a194c4013d536252f05449 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 6 Oct 2021 10:54:24 +0100 Subject: [PATCH] making the onboarding modal inline and shown when you have no apps --- .../components/start/OnboardingModal.svelte | 15 ++++-------- .../pages/builder/portal/apps/index.svelte | 24 +------------------ 2 files changed, 6 insertions(+), 33 deletions(-) diff --git a/packages/builder/src/components/start/OnboardingModal.svelte b/packages/builder/src/components/start/OnboardingModal.svelte index a6a66201dd..52522b23f1 100644 --- a/packages/builder/src/components/start/OnboardingModal.svelte +++ b/packages/builder/src/components/start/OnboardingModal.svelte @@ -1,6 +1,6 @@ {#if step === 0} @@ -33,6 +24,8 @@ title={`Welcome ${$auth.user?.firstName + "!" || "!"}`} confirmText="Next" onConfirm={nextStep} + showCancelButton={false} + showCloseIcon={false} >

Welcome to Budibase!

@@ -53,6 +46,8 @@ confirmText="Start from Scratch" size="L" onConfirm={nextStep} + showCancelButton={false} + showCloseIcon={false} > One of the coolest things about Budibase is that you don't have to start diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index fbff84e64e..5b60a26882 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -8,10 +8,8 @@ ButtonGroup, Select, Modal, - ModalContent, Page, notifications, - Body, Search, } from "@budibase/bbui" import CreateAppModal from "components/start/CreateAppModal.svelte" @@ -35,7 +33,6 @@ let updatingModal let deletionModal let unpublishModal - let onboardingModal let creatingApp = false let loaded = false let searchTerm = "" @@ -45,7 +42,6 @@ $: filteredApps = enrichedApps.filter(app => app?.name?.toLowerCase().includes(searchTerm.toLowerCase()) ) - $: loaded && enrichedApps.length === 0 && onboardingModal?.show() const enrichApps = (apps, user, sortBy) => { const enrichedApps = apps.map(app => ({ @@ -273,22 +269,7 @@ {#if !enrichedApps.length && !creatingApp && loaded}
- -
- -
- - The purpose of the Budibase builder is to help you build beautiful, - powerful applications quickly and easily. - -
+
{/if} @@ -319,9 +300,6 @@ - - -