aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/extra_notifications/extra_notifications.js11
-rw-r--r--src/components/extra_notifications/extra_notifications.vue11
2 files changed, 19 insertions, 3 deletions
diff --git a/src/components/extra_notifications/extra_notifications.js b/src/components/extra_notifications/extra_notifications.js
index 0bf904ba..1f3c6e6d 100644
--- a/src/components/extra_notifications/extra_notifications.js
+++ b/src/components/extra_notifications/extra_notifications.js
@@ -2,7 +2,16 @@ import { mapGetters } from 'vuex'
const ExtraNotifications = {
computed: {
- ...mapGetters(['unreadChatCount', 'unreadAnnouncementCount'])
+ shouldShowChats () {
+ return this.unreadChatCount
+ },
+ shouldShowAnnouncements () {
+ return this.unreadAnnouncementCount
+ },
+ shouldShowFollowRequests () {
+ return this.followRequestCount
+ },
+ ...mapGetters(['unreadChatCount', 'unreadAnnouncementCount', 'followRequestCount'])
}
}
diff --git a/src/components/extra_notifications/extra_notifications.vue b/src/components/extra_notifications/extra_notifications.vue
index 11eeb937..f5cf1661 100644
--- a/src/components/extra_notifications/extra_notifications.vue
+++ b/src/components/extra_notifications/extra_notifications.vue
@@ -1,19 +1,26 @@
<template>
<div class="ExtraNotifications">
<router-link
- v-if="unreadChatCount"
+ v-if="shouldShowChats"
class="button-unstyled -link extra-notification"
to="chats"
>
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
</router-link>
<router-link
- v-if="unreadAnnouncementCount"
+ v-if="shouldShowAnnouncements"
class="button-unstyled -link extra-notification"
to="announcements"
>
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
</router-link>
+ <router-link
+ v-if="shouldShowFollowRequests"
+ class="button-unstyled -link extra-notification"
+ to="friend-requests"
+ >
+ {{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
+ </router-link>
</div>
</template>