|
|
|
@ -2,13 +2,15 @@ |
|
|
|
import { Button, ActionButton, Drawer } from "@budibase/bbui" |
|
|
|
import { createEventDispatcher } from "svelte" |
|
|
|
import NavigationDrawer from "./NavigationDrawer.svelte" |
|
|
|
import { cloneDeep } from "lodash/fp" |
|
|
|
|
|
|
|
export let value = [] |
|
|
|
let drawer |
|
|
|
let links = cloneDeep(value) |
|
|
|
|
|
|
|
const dispatch = createEventDispatcher() |
|
|
|
const save = () => { |
|
|
|
dispatch("change", value) |
|
|
|
dispatch("change", links) |
|
|
|
drawer.hide() |
|
|
|
} |
|
|
|
</script> |
|
|
|
@ -19,5 +21,5 @@ |
|
|
|
Configure the links in your navigation bar. |
|
|
|
</svelte:fragment> |
|
|
|
<Button cta slot="buttons" on:click={save}>Save</Button> |
|
|
|
<NavigationDrawer slot="body" bind:links={value} /> |
|
|
|
<NavigationDrawer slot="body" bind:links /> |
|
|
|
</Drawer> |
|
|
|
|