mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Rewrite the toggleMenu call
This commit is contained in:
parent
5b6f816ae1
commit
da5c63e97d
@ -14,10 +14,8 @@
|
||||
primary
|
||||
icon="bell"
|
||||
@click.prevent="
|
||||
() => {
|
||||
toggleMenu()
|
||||
updateNotifications()
|
||||
}
|
||||
toggleMenu()
|
||||
updateNotifications()
|
||||
"
|
||||
>
|
||||
{{ unreadNotifications }}
|
||||
@ -65,7 +63,7 @@ export default {
|
||||
} = await this.$apollo.mutate({
|
||||
mutation: notificationQuery(this.$i18n),
|
||||
})
|
||||
// add all the new notifications to the notifications
|
||||
// add all the new notifications to the old notifications at top of the list
|
||||
if (notifications) {
|
||||
notifications.forEach(udatedListNotification => {
|
||||
const sameNotification = this.notifications.find(function(oldListNotification) {
|
||||
@ -115,9 +113,6 @@ export default {
|
||||
}
|
||||
return countUnread
|
||||
},
|
||||
clickMenuButton() {
|
||||
toggleMenu()
|
||||
},
|
||||
},
|
||||
apollo: {
|
||||
notifications: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user