owltide/pages/edit.vue

18 lines
370 B
Vue
Raw Normal View History

<template>
<main>
<h1>Edit</h1>
2025-03-11 14:12:33 +01:00
<h2>Locations</h2>
<LocationsTable :edit="isAdmin" />
</main>
</template>
<script lang="ts" setup>
definePageMeta({
middleware: ["authenticated"],
allowedAccountTypes: ["crew", "admin"],
2025-03-11 14:12:33 +01:00
});
const { data: session } = await useAccountSession();
const isAdmin = computed(() => session.value?.account.type === "admin")
</script>