diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Sidebar.vue (renamed from src/components/sidebar.vue) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/sidebar.vue b/src/components/Sidebar.vue index ade83b7..52e2aa2 100644 --- a/src/components/sidebar.vue +++ b/src/components/Sidebar.vue @@ -8,13 +8,13 @@ const route = useRoute() watch( () => route.name, async () => { - requiresAuth.value = route.meta.isAuth + requiresAuth.value = route.meta.requiresAuth } ) </script> <template> - <div id="sidebar" class="d-flex flex-column flex-shrink-0 bg-dark border-secondary border-end"> + <div v-if="requiresAuth" id="sidebar" class="d-flex flex-column flex-shrink-0 bg-dark border-secondary border-end"> <RouterLink class="d-flex justify-content-center align-items-center p-3 link-dark text-decoration-none navbar-brand text-white" to="/"> <!--img src="" alt="profile photo" width="32" height="32" class="rounded-circle"--> </RouterLink> |