From 1c180ace0b12ff85cb6cfe34bfc022b0f82b1c85 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 18 Aug 2023 20:39:14 -0400 Subject: [PATCH] Fix router links to use route objects --- src/components/extra_notifications/extra_notifications.js | 3 +++ src/components/extra_notifications/extra_notifications.vue | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/extra_notifications/extra_notifications.js b/src/components/extra_notifications/extra_notifications.js index cd687eaf..01df12a3 100644 --- a/src/components/extra_notifications/extra_notifications.js +++ b/src/components/extra_notifications/extra_notifications.js @@ -17,6 +17,9 @@ const ExtraNotifications = { shouldShowCustomizationTip () { return this.mergedConfig.showExtraNotificationsTip && this.hasAnythingToShow }, + currentUser () { + return this.$store.state.users.currentUser + }, ...mapGetters(['unreadChatCount', 'unreadAnnouncementCount', 'followRequestCount', 'mergedConfig']) }, methods: { diff --git a/src/components/extra_notifications/extra_notifications.vue b/src/components/extra_notifications/extra_notifications.vue index d5edf399..7e09e5cc 100644 --- a/src/components/extra_notifications/extra_notifications.vue +++ b/src/components/extra_notifications/extra_notifications.vue @@ -3,21 +3,21 @@ {{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }} {{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }} {{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}