aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-13 02:58:56 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-13 02:58:56 +0530
commit0ab42c437c2fa40e9f9483791ad8971eefb41ed1 (patch)
tree0281ad934cea6531266a19759ef896b0f2086364 /src
parent3d6d0a116b2c4629ebbce775eeaf86950c498393 (diff)
not showing sidebar on login and register page
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>