diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index cf9cd55b19..0bb2c0f21c 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -3,16 +3,14 @@ import { Icon, Avatar, - Layout, - SideNavigation as Navigation, - SideNavigationItem as Item, ActionMenu, MenuItem, Modal, - clickOutside, notifications, + Tabs, + Tab, + Button, } from "@budibase/bbui" - import ConfigChecklist from "components/common/ConfigChecklist.svelte" import { organisation, auth, admin as adminStore } from "stores/portal" import { onMount } from "svelte" import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte" @@ -26,6 +24,7 @@ let changePasswordModal let apiKeyModal let mobileMenuVisible = false + let activeTab = "Apps" $: menu = buildMenu($auth.isAdmin) @@ -122,12 +121,6 @@ badge: "New", }, ]) - } else if (!$adminStore.cloud && admin) { - menu = menu.concat({ - title: "Upgrade", - href: "/builder/portal/settings/upgrade", - badge: "New", - }) } // show the billing page to licensed account holders in cloud @@ -173,42 +166,28 @@ loaded = true } } + + // Find selected tab + for (let entry of menu) { + if ($isActive(entry.href)) { + activeTab = entry.title + break + } + } }) {#if $auth.user && loaded}
- -
+