fix: Hopefully fix SSR in Navigation
continuous-integration/drone/push Build is passing Details

main
Flycro 2024-03-21 02:36:31 +01:00
parent 13a4730c15
commit 05898fbd9b
2 changed files with 8 additions and 4 deletions

View File

@ -22,7 +22,9 @@ const links: NavigationTree[] = [
},
]
/* if (authStore.user?.roles.includes('admin')) {
await useAsyncData('user', () => authStore.fetchUser())
if (authStore.user?.roles.includes('admin')) {
links.push({
label: 'Admin',
to: '/admin',
@ -40,7 +42,7 @@ const links: NavigationTree[] = [
},
],
})
} */
}
</script>
<template>

View File

@ -11,13 +11,15 @@ const links = [{
icon: 'i-heroicons-arrow-left-on-rectangle',
}]
/* if (authStore.user?.roles.includes('admin')) {
await useAsyncData('user', () => authStore.fetchUser())
if (authStore.user?.roles.includes('admin')) {
links.push({
label: 'Admin',
to: '/admin',
icon: 'i-heroicons-cog-solid',
})
} */
}
</script>
<template>