From da5c63e97d9882ba17eb11f235fc2382ad10fa4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 23 Sep 2019 12:08:06 +0200 Subject: [PATCH] Rewrite the `toggleMenu` call --- .../NotificationMenu/NotificationMenu.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue index eecbbcd68..f96bd9e73 100644 --- a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue @@ -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: {