Skip to content

Commit 3e0209b

Browse files
committed
feat: move admin tools to its own sidebar group
1 parent 7b93de1 commit 3e0209b

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

components/sidebar/SidebarElement.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ const { data: currentUser } = await useCurrentUser();
7373
:link="{ name: 'search-term' }"
7474
icon="nav.search"
7575
/>
76+
</SidebarGroup>
77+
78+
<SidebarGroup :title="$t('sidebar.tools.title')">
79+
<SidebarItem
80+
v-if="isFraKaareDashboardViewer(currentUser)"
81+
:title="$t('dashboards.title')"
82+
:link="{ name: 'dashboards-fra-kaare' }"
83+
icon="icon.dashboard"
84+
/>
7685
<SidebarItem
7786
v-if="isTranscriptionManager(currentUser)"
7887
:title="$t('nav.transcribe')"
@@ -85,12 +94,6 @@ const { data: currentUser } = await useCurrentUser();
8594
:link="{ name: 'lyrics' }"
8695
icon="icon.lyrics"
8796
/>
88-
<SidebarItem
89-
v-if="isFraKaareDashboardViewer(currentUser)"
90-
title="Dashboard"
91-
:link="{ name: 'dashboards-fra-kaare' }"
92-
icon="icon.dashboard"
93-
/>
9497
</SidebarGroup>
9598

9699
<SidebarGroup :title="$t('sidebar.playlists.title')">

locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"sidebar": {
2626
"playlists": {
2727
"title": "Playlists"
28+
},
29+
"tools": {
30+
"title": "Tools"
2831
}
2932
},
3033
"share": {

0 commit comments

Comments
 (0)