From f4c8dec6d5b8134a2b84cecf70e26e14e81f385d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 23 Sep 2019 13:46:08 +0200 Subject: [PATCH] Update webapp/components/notifications/NotificationMenu/NotificationMenu.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Robert Schäfer --- .../notifications/NotificationMenu/NotificationMenu.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue index f96bd9e73..cada56bde 100644 --- a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue @@ -105,7 +105,9 @@ export default { return (this.notifications || []).length }, unreadNotifications() { - let countUnread = 0 + let countUnread = this.notifications.reduce((notification, counter) => { + return (notification.read) ? counter : counter +1 + }) if (this.notifications) { this.notifications.forEach(notification => { if (!notification.read) countUnread++