diff --git a/packages/standard-components/src/Layout.svelte b/packages/standard-components/src/Layout.svelte index 1e26f23a3c..1e4c083f4c 100644 --- a/packages/standard-components/src/Layout.svelte +++ b/packages/standard-components/src/Layout.svelte @@ -2,7 +2,7 @@ import { getContext } from "svelte" import { Heading, Icon } from "@budibase/bbui" - const { styleable, linkable } = getContext("sdk") + const { styleable, linkable, builderStore } = getContext("sdk") const component = getContext("component") export let title @@ -41,6 +41,11 @@ const close = () => { mobileOpen = false } + + const navigateToPortal = () => { + if ($builderStore.inBuilder) return + window.location.href = "/builder/apps" + }