budibase/packages/builder/src/components/userInterface/FrontendNavigatePane.svelte

24 lines
772 B
Svelte
Raw Normal View History

<script>
2020-10-08 10:35:11 +02:00
import { store } from "builderStore"
import ComponentsHierarchy from "components/userInterface/ComponentsHierarchy.svelte"
import PageLayout from "components/userInterface/PageLayout.svelte"
import PagesList from "components/userInterface/PagesList.svelte"
2020-10-08 10:35:11 +02:00
import NewScreenModal from "components/userInterface/NewScreenModal.svelte"
import { Button, Spacer, Modal, Heading } from "@budibase/bbui"
2020-05-29 19:32:52 +02:00
2020-10-08 10:35:11 +02:00
let modal
</script>
<Heading small>Screens</Heading>
<PagesList />
2020-10-08 10:35:11 +02:00
<Button primary wide on:click={modal.show}>Create New Screen</Button>
<div class="nav-items-container">
<PageLayout layout={$store.pages[$store.currentPageName]} />
<ComponentsHierarchy screens={$store.screens} />
</div>
2020-10-08 10:35:11 +02:00
<Modal bind:this={modal}>
<NewScreenModal />
</Modal>