Add editable LocationsTable

This commit is contained in:
Hornwitser 2025-03-11 14:12:33 +01:00
parent 5255ed698e
commit c940f785c5
3 changed files with 188 additions and 3 deletions

View file

@ -1,7 +1,8 @@
<template>
<main>
<h1>Edit</h1>
<p>Todo: implement editing</p>
<h2>Locations</h2>
<LocationsTable :edit="isAdmin" />
</main>
</template>
@ -9,5 +10,8 @@
definePageMeta({
middleware: ["authenticated"],
allowedAccountTypes: ["crew", "admin"],
})
});
const { data: session } = await useAccountSession();
const isAdmin = computed(() => session.value?.account.type === "admin")
</script>