aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/extra_notifications/extra_notifications.js3
-rw-r--r--src/components/extra_notifications/extra_notifications.vue6
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 @@
<router-link
v-if="shouldShowChats"
class="button-unstyled -link extra-notification"
- to="chats"
+ :to="{ name: 'chats', params: { username: currentUser.screen_name } }"
>
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
</router-link>
<router-link
v-if="shouldShowAnnouncements"
class="button-unstyled -link extra-notification"
- to="announcements"
+ :to="{ name: 'announcements' }"
>
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
</router-link>
<router-link
v-if="shouldShowFollowRequests"
class="button-unstyled -link extra-notification"
- to="friend-requests"
+ :to="{ name: 'friend-requests' }"
>
{{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
</router-link>