diff --git a/app/components/AppShell.vue b/app/components/AppShell.vue index b12d5c9..c86d8dc 100644 --- a/app/components/AppShell.vue +++ b/app/components/AppShell.vue @@ -12,7 +12,7 @@ withDefaults( const route = useRoute() const { loggedIn, user, clear, initialized, ensureClientMeSynced } = useAuthSession() const { fetchData } = useClientApi() -const { allowRegister, siteName } = useGlobalConfig() +const { allowRegister, siteName, showDiscoverInHeaderForGuest } = useGlobalConfig() const logoutLoading = ref(false) @@ -63,6 +63,7 @@ function navActive(to: string) { const consoleNavActive = computed(() => navActive('/me')) const showQuickCreate = computed(() => loggedIn.value && initialized.value) +const showGuestDiscoverNav = computed(() => !loggedIn.value && showDiscoverInHeaderForGuest.value) const accountMenuItems = computed(() => { const u = user.value @@ -122,11 +123,12 @@ async function logout() {