diff --git a/packages/builder/src/pages/builder/app/[application]/design/new.svelte b/packages/builder/src/pages/builder/app/[application]/design/new.svelte index 8b341ee2c4..13eaaeaf7e 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/new.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/new.svelte @@ -4,17 +4,19 @@ import blankImage from "./blank.png" import tableImage from "./table.png" import CreateScreenModal from "./_components/CreateScreenModal.svelte" - import { store as frontendStore } from "builderStore" + import { store } from "builderStore" import { goto } from "@roxi/routify" let createScreenModal + + $: hasScreens = $store.screens?.length
0} - onClose={() => $goto(`./${$frontendStore.screens[0]._id}`)} - heading="Create your first screen" + showClose={$store.screens.length > 0} + onClose={() => $goto(`./${$store.screens[0]._id}`)} + heading={hasScreens ? "Create new screen" : "Create your first screen"} >
Start from scratch or create screens from your data