Rework to use marbas and authentik instead of poketbase (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
+7
-1
@@ -1,13 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { useAuthStore } from '@/auth';
|
||||
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="route.name === 'login'">
|
||||
<template v-if="hideSidebar">
|
||||
<RouterView />
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user