User dropdown

User id in acquisition
about
This commit is contained in:
2024-05-16 10:41:12 +02:00
parent 0e4f1103d4
commit 6d67e92749
10 changed files with 105 additions and 13 deletions

View File

@@ -1,14 +1,19 @@
<script setup lang="ts">
import { useAuthStore } from '@/auth';
import { RouterView } from 'vue-router';
import { computed } from 'vue';
import { RouterView, useRoute } from 'vue-router';
import { Sidebar } from './sidebar';
const route = useRoute();
const authStore = useAuthStore();
const hideSidebar = computed(() => {
return !authStore.isLoggedIn || route.name === 'callback' || route.name === 'about';
});
</script>
<template>
<template v-if="!authStore.isLoggedIn">
<template v-if="hideSidebar">
<RouterView />
</template>
<template v-else>