mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Update webapp/components/notifications/NotificationMenu/NotificationMenu.vue
Co-Authored-By: Robert Schäfer <git@roschaefer.de>
This commit is contained in:
parent
9d884d6fdc
commit
f4c8dec6d5
@ -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++
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user