Public App Missing Nav Menu (#8870)
* Public App Missing Nav Menu * PR Feedback
This commit is contained in:
parent
6e4f560948
commit
ffa3eede49
|
@ -1,4 +1,5 @@
|
||||||
import { derived } from "svelte/store"
|
import { derived } from "svelte/store"
|
||||||
|
import { Constants } from "@budibase/frontend-core"
|
||||||
import { devToolsStore } from "../devTools.js"
|
import { devToolsStore } from "../devTools.js"
|
||||||
import { authStore } from "../auth.js"
|
import { authStore } from "../auth.js"
|
||||||
|
|
||||||
|
@ -6,6 +7,10 @@ import { authStore } from "../auth.js"
|
||||||
export const currentRole = derived(
|
export const currentRole = derived(
|
||||||
[devToolsStore, authStore],
|
[devToolsStore, authStore],
|
||||||
([$devToolsStore, $authStore]) => {
|
([$devToolsStore, $authStore]) => {
|
||||||
return ($devToolsStore.enabled && $devToolsStore.role) || $authStore?.roleId
|
return (
|
||||||
|
($devToolsStore.enabled && $devToolsStore.role) ||
|
||||||
|
$authStore?.roleId ||
|
||||||
|
Constants.Roles.PUBLIC
|
||||||
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue