From c940f785c5e3ce613a313f792bf67b189993c5b4 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 11 Mar 2025 14:12:33 +0100 Subject: [PATCH] Add editable LocationsTable --- assets/global.css | 2 +- components/LocationsTable.vue | 181 ++++++++++++++++++++++++++++++++++ pages/edit.vue | 8 +- 3 files changed, 188 insertions(+), 3 deletions(-) create mode 100644 components/LocationsTable.vue diff --git a/assets/global.css b/assets/global.css index e74cf7a..f7a3fca 100644 --- a/assets/global.css +++ b/assets/global.css @@ -53,7 +53,7 @@ a { } } -button { +button, input, textarea { font-family: inherit; font-size: inherit; } diff --git a/components/LocationsTable.vue b/components/LocationsTable.vue new file mode 100644 index 0000000..7fbfd99 --- /dev/null +++ b/components/LocationsTable.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/pages/edit.vue b/pages/edit.vue index c3d6f0c..9d15202 100644 --- a/pages/edit.vue +++ b/pages/edit.vue @@ -1,7 +1,8 @@ @@ -9,5 +10,8 @@ definePageMeta({ middleware: ["authenticated"], allowedAccountTypes: ["crew", "admin"], -}) +}); + +const { data: session } = await useAccountSession(); +const isAdmin = computed(() => session.value?.account.type === "admin")