diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte index 141b7c1b37..1b2310b61f 100644 --- a/packages/bbui/src/Avatar/Avatar.svelte +++ b/packages/bbui/src/Avatar/Avatar.svelte @@ -16,7 +16,7 @@ function getInitials(name) { let parts = name.split(" ") - return parts.map((name) => name[0]).join("") + return parts.map(name => name[0]).join("") } diff --git a/packages/bbui/src/SideNavigation/Item.svelte b/packages/bbui/src/SideNavigation/Item.svelte index 75440796b5..f50270dfbd 100644 --- a/packages/bbui/src/SideNavigation/Item.svelte +++ b/packages/bbui/src/SideNavigation/Item.svelte @@ -20,7 +20,7 @@ {/if} { const type = $store.currentFrontEndType diff --git a/packages/builder/src/builderStore/store/admin.js b/packages/builder/src/builderStore/store/admin.js deleted file mode 100644 index dcf7fef485..0000000000 --- a/packages/builder/src/builderStore/store/admin.js +++ /dev/null @@ -1,11 +0,0 @@ -import { writable } from "svelte/store" - -const INITIAL_ADMIN_STATE = { - oauth: [], -} - -export const getAdminStore = () => { - const store = writable({ ...INITIAL_ADMIN_STATE }) - store.actions = {} - return store -} diff --git a/packages/builder/src/pages/portal/_layout.svelte b/packages/builder/src/pages/portal/_layout.svelte index c9f6aac4af..e26148b666 100644 --- a/packages/builder/src/pages/portal/_layout.svelte +++ b/packages/builder/src/pages/portal/_layout.svelte @@ -10,15 +10,12 @@ SideNavigation as Navigation, SideNavigationItem as Item, } from "@budibase/bbui" + import { organisation } from "stores/portal" + organisation.init() - let orgName, orgLogo, onBoardingProgress, user + let onBoardingProgress, user async function getInfo() { - // fetch orgInfo - orgName = "ACME Inc." - orgLogo = "https://via.placeholder.com/150" - - // set onBoardingProgress onBoardingProgress = 20 user = { name: "John Doe" } } @@ -26,13 +23,13 @@ onMount(getInfo) let menu = [ - { title: "Apps", href: "/portal" }, + { title: "Apps", href: "/portal/" }, { title: "Drafts", href: "/portal/drafts" }, { title: "Users", href: "/portal/users", heading: "Manage" }, { title: "Groups", href: "/portal/groups" }, { title: "Auth", href: "/portal/oauth" }, { title: "Email", href: "/portal/email" }, - { title: "General", href: "/portal/general", heading: "Settings" }, + { title: "General", href: "/portal/settings/general", heading: "Settings" }, { title: "Theming", href: "/portal/theming" }, { title: "Account", href: "/portal/account" }, ] @@ -43,8 +40,11 @@