fix: analytics events page not in admin dropdown (#6352)

* fix: analytics events page not in admin dropdown

* pnpm prepr

* fix: add clearing date picker

* fix: date picker positioning not using rendered height
This commit is contained in:
Truman Gao
2026-06-09 21:01:42 +00:00
committed by GitHub
parent 93f8da1666
commit 72a4e86c26
5 changed files with 140 additions and 23 deletions
+13
View File
@@ -383,6 +383,12 @@
action: (event) => $refs.modal_batch_credit.show(event),
shown: isAdmin(auth.user),
},
{
id: 'analytics-events',
color: 'primary',
link: '/admin/analytics/events',
shown: isAdmin(auth.user),
},
]"
>
<ModrinthIcon aria-hidden="true" />
@@ -417,6 +423,9 @@
<template #servers-nodes>
<ServerIcon aria-hidden="true" /> Credit server nodes
</template>
<template #analytics-events>
<ChartIcon aria-hidden="true" /> {{ formatMessage(messages.analyticsEvents) }}
</template>
</OverflowMenu>
</ButtonStyled>
<ButtonStyled type="transparent">
@@ -954,6 +963,10 @@ const messages = defineMessages({
id: 'layout.action.manage-affiliates',
defaultMessage: 'Manage affiliate links',
},
analyticsEvents: {
id: 'layout.action.analytics-events',
defaultMessage: 'Analytics events',
},
newProject: {
id: 'layout.action.new-project',
defaultMessage: 'New project',