Add editable LocationsTable
This commit is contained in:
parent
5255ed698e
commit
c940f785c5
3 changed files with 188 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue