From bc64db15f965d1165976e46c36f75554390d9a46 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 17 Dec 2024 14:08:31 +0100 Subject: [PATCH] #34 - add menu notifications count --- src/components/Menu.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 46e12cb..b07db90 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -38,6 +38,9 @@ :data-icon="mainItem.icon" :key="mainItem.path" :class="{ active: isCurrent(mainItem), disabled: mainItem.disabled }" + :data-count=" + mainItem.title === 'Notifications' ? notificationCount() : undefined + " > notification.isRead) + .length; +}