feat(hunt): add public flag to hunts and implement hunt creation page
- Add 'public' boolean column to Hunt model with default true - Update hunt admin UI to toggle 'public' flag - Implement new hunt creation page with form supporting all hunt properties - Add sidebar navigation item for hunt creation for authorized users - Adjust home API to filter hunts by public flag only
This commit is contained in:
@@ -60,6 +60,18 @@ const isHuntAdmin = computed(
|
||||
<VaSidebarItemTitle>Home</VaSidebarItemTitle>
|
||||
</VaSidebarItemContent>
|
||||
</VaSidebarItem>
|
||||
<VaSidebarItem
|
||||
v-if="user?.role === 'CREATOR' || user?.role === 'ADMIN'"
|
||||
:to="localePath('/admin/hunt/create')"
|
||||
:active="localePath('/admin/hunt/create') === route.path"
|
||||
>
|
||||
<VaSidebarItemContent>
|
||||
<VaIcon name="add_circle" />
|
||||
<VaSidebarItemTitle>{{
|
||||
t('page.create_hunt.sidebar')
|
||||
}}</VaSidebarItemTitle>
|
||||
</VaSidebarItemContent>
|
||||
</VaSidebarItem>
|
||||
<VaSidebarItem
|
||||
:to="localePath('/impressum')"
|
||||
:active="localePath('/impressum') === route.path"
|
||||
|
||||
Reference in New Issue
Block a user