From eb0298420ecf4233cdf34fb22294003981609f05 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 9 Apr 2020 10:16:15 +0200 Subject: [PATCH] change topnav back for now --- .../builder/src/pages/[application]/_layout.svelte | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/pages/[application]/_layout.svelte b/packages/builder/src/pages/[application]/_layout.svelte index 35e629974a..d80c542f40 100644 --- a/packages/builder/src/pages/[application]/_layout.svelte +++ b/packages/builder/src/pages/[application]/_layout.svelte @@ -2,7 +2,7 @@ import { store } from "builderStore" import { fade } from "svelte/transition" - import { isActive, goto, url, layout } from "@sveltech/routify" + import { isActive, goto, context } from "@sveltech/routify" import { SettingsIcon, PreviewIcon } from "components/common/Icons/" import IconButton from "components/common/IconButton.svelte" @@ -23,6 +23,8 @@ throw new Error(pkg) } } + $: ({ component } = $context) + $: list = component.parent.children.filter(child => child.isIndexable)
@@ -35,12 +37,12 @@ alt="budibase icon" /> - - {#each $layout.children as { path, prettyName, children, meta }} + + {#each list as { path, prettyName, children, meta }} $goto($url(path))}> + on:click={() => $goto(path)}> {prettyName} {/each} @@ -50,9 +52,9 @@
$goto(`${component.parent.path}/settings`)}> + on:click={() => $goto(`/settings`)}>