Navigate between budibase and account portal
This commit is contained in:
parent
689065d2b8
commit
011193a3dc
|
@ -12,6 +12,7 @@
|
|||
} from "@budibase/bbui"
|
||||
import ConfigChecklist from "components/common/ConfigChecklist.svelte"
|
||||
import { organisation, auth } from "stores/portal"
|
||||
import { admin as adminStore } from "stores/portal"
|
||||
import { onMount } from "svelte"
|
||||
import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte"
|
||||
import ChangePasswordModal from "components/settings/ChangePasswordModal.svelte"
|
||||
|
@ -57,6 +58,16 @@
|
|||
},
|
||||
])
|
||||
}
|
||||
|
||||
// add link to account portal if the user has access
|
||||
if ($auth.user.account) {
|
||||
menu = menu.concat([
|
||||
{
|
||||
title: "Account",
|
||||
href: $adminStore.accountPortalUrl,
|
||||
},
|
||||
])
|
||||
}
|
||||
return menu
|
||||
}
|
||||
|
||||
|
|
|
@ -196,6 +196,11 @@ exports.getSelf = async ctx => {
|
|||
}
|
||||
// this will set the body
|
||||
await exports.find(ctx)
|
||||
|
||||
// append the account portal session information if present
|
||||
if (ctx.user.account) {
|
||||
ctx.body.account = ctx.user.account
|
||||
}
|
||||
}
|
||||
|
||||
exports.updateSelf = async ctx => {
|
||||
|
|
Loading…
Reference in New Issue