diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index dcf4e9740..ca5f8b17e 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -151,6 +151,9 @@ const menuItems = computed(() => { icon: 'i-lucide-inbox', to: accountScopedRoute('inbox_view'), activeOn: ['inbox_view', 'inbox_view_conversation'], + getterKeys: { + badge: 'notifications/getHasUnreadNotifications', + }, }, { name: 'Conversation', diff --git a/app/javascript/dashboard/components-next/sidebar/SidebarGroup.vue b/app/javascript/dashboard/components-next/sidebar/SidebarGroup.vue index 305171d10..64345c7de 100644 --- a/app/javascript/dashboard/components-next/sidebar/SidebarGroup.vue +++ b/app/javascript/dashboard/components-next/sidebar/SidebarGroup.vue @@ -15,6 +15,7 @@ const props = defineProps({ to: { type: Object, default: null }, activeOn: { type: Array, default: () => [] }, children: { type: Array, default: undefined }, + getterKeys: { type: Object, default: () => ({}) }, }); const { @@ -143,6 +144,7 @@ onMounted(async () => { :name :label :to + :getter-keys="getterKeys" :is-active="isActive" :has-active-child="hasActiveChild" :expandable="hasChildren" diff --git a/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue b/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue index 160483a6a..1fd1786a0 100644 --- a/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue +++ b/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue @@ -1,7 +1,8 @@