aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_notifications/extra_notifications.vue
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-08-18 21:57:06 -0400
committertusooa <tusooa@kazv.moe>2023-08-18 22:25:32 -0400
commite4ab012f21f42c3a3c5b3a0bdcf0455cf419d366 (patch)
tree24679436575270ce0b2824e40fc31c657ba8da85 /src/components/extra_notifications/extra_notifications.vue
parentff25838479ecbb6c28b741efde47b0ad9253c2da (diff)
Move v-if condition to the right place
Diffstat (limited to 'src/components/extra_notifications/extra_notifications.vue')
-rw-r--r--src/components/extra_notifications/extra_notifications.vue18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/components/extra_notifications/extra_notifications.vue b/src/components/extra_notifications/extra_notifications.vue
index 96489190..6e0456a5 100644
--- a/src/components/extra_notifications/extra_notifications.vue
+++ b/src/components/extra_notifications/extra_notifications.vue
@@ -1,9 +1,11 @@
<template>
<div class="ExtraNotifications">
- <div class="notification unseen">
+ <div
+ v-if="shouldShowChats"
+ class="notification unseen"
+ >
<div class="notification-overlay" />
<router-link
- v-if="shouldShowChats"
class="button-unstyled -link extra-notification"
:to="{ name: 'chats', params: { username: currentUser.screen_name } }"
>
@@ -15,10 +17,12 @@
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
</router-link>
</div>
- <div class="notification unseen">
+ <div
+ v-if="shouldShowAnnouncements"
+ class="notification unseen"
+ >
<div class="notification-overlay" />
<router-link
- v-if="shouldShowAnnouncements"
class="button-unstyled -link extra-notification"
:to="{ name: 'announcements' }"
>
@@ -30,10 +34,12 @@
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
</router-link>
</div>
- <div class="notification unseen">
+ <div
+ v-if="shouldShowFollowRequests"
+ class="notification unseen"
+ >
<div class="notification-overlay" />
<router-link
- v-if="shouldShowFollowRequests"
class="button-unstyled -link extra-notification"
:to="{ name: 'friend-requests' }"
>