17 lines
370 B
Vue
17 lines
370 B
Vue
<template>
|
|
<main>
|
|
<h1>Edit</h1>
|
|
<h2>Locations</h2>
|
|
<LocationsTable :edit="isAdmin" />
|
|
</main>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
definePageMeta({
|
|
middleware: ["authenticated"],
|
|
allowedAccountTypes: ["crew", "admin"],
|
|
});
|
|
|
|
const { data: session } = await useAccountSession();
|
|
const isAdmin = computed(() => session.value?.account.type === "admin")
|
|
</script>
|