Add team member and hunt member management for admins

This commit is contained in:
2025-08-10 00:20:44 +02:00
parent dc3c21f885
commit befc678bdb
15 changed files with 1009 additions and 12 deletions
+15
View File
@@ -78,6 +78,21 @@ const slugs = computed(() => checkSlug(route.params));
<VaSidebarItemTitle>Hunt Admin</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
v-if="slugs?.huntSlug && user?.role === 'ADMIN'"
text-color="danger"
hover-color="danger"
active-color="onDanger"
:to="$localePath(`/hunt/${sluggy(slugs.huntSlug)}/teams`)"
:active="
$localePath(`/hunt/${sluggy(slugs.huntSlug)}/teams`) === route.path
"
>
<VaSidebarItemContent>
<VaIcon name="groups" />
<VaSidebarItemTitle>Hunt Teams</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
v-if="slugs?.huntSlug && slugs?.questSlug"
:to="