From d68ac251878ae77737ea473adfc7c22eef5dbaf4 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Mon, 1 Sep 2025 15:55:09 +0530 Subject: [PATCH] feat: Display notification count in sidebar inbox item (#12324) --- .../components-next/sidebar/Sidebar.vue | 2 +- .../sidebar/SidebarGroupHeader.vue | 25 ++++++++++++++++--- .../routes/dashboard/inbox/InboxList.vue | 7 +----- .../store/modules/notifications/getters.js | 3 +++ 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index 20139ed27..c4daaf519 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -128,7 +128,7 @@ const menuItems = computed(() => { to: accountScopedRoute('inbox_view'), activeOn: ['inbox_view', 'inbox_view_conversation'], getterKeys: { - badge: 'notifications/getHasUnreadNotifications', + count: 'notifications/getUnreadCount', }, }, { diff --git a/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue b/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue index b0fd8fc69..2619f3100 100644 --- a/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue +++ b/app/javascript/dashboard/components-next/sidebar/SidebarGroupHeader.vue @@ -1,4 +1,5 @@