Changed ways to access calendars
This commit is contained in:
20
pages/i/world/[id]/calendar.vue
Normal file
20
pages/i/world/[id]/calendar.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
useHead({
|
||||
title: 'Calendrier'
|
||||
})
|
||||
definePageMeta({
|
||||
middleware: ['auth-guard']
|
||||
})
|
||||
|
||||
const user = useSupabaseUser()
|
||||
// Redirect user back home when they log out on the page
|
||||
watch(user, (n, _o) => {
|
||||
if (!n) {
|
||||
navigateTo('/')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Calendar />
|
||||
</template>
|
||||
Reference in New Issue
Block a user