Move v-if condition to the right place
This commit is contained in:
parent
ff25838479
commit
e4ab012f21
@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ExtraNotifications">
|
<div class="ExtraNotifications">
|
||||||
<div class="notification unseen">
|
<div
|
||||||
|
v-if="shouldShowChats"
|
||||||
|
class="notification unseen"
|
||||||
|
>
|
||||||
<div class="notification-overlay" />
|
<div class="notification-overlay" />
|
||||||
<router-link
|
<router-link
|
||||||
v-if="shouldShowChats"
|
|
||||||
class="button-unstyled -link extra-notification"
|
class="button-unstyled -link extra-notification"
|
||||||
:to="{ name: 'chats', params: { username: currentUser.screen_name } }"
|
:to="{ name: 'chats', params: { username: currentUser.screen_name } }"
|
||||||
>
|
>
|
||||||
@ -15,10 +17,12 @@
|
|||||||
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
|
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="notification unseen">
|
<div
|
||||||
|
v-if="shouldShowAnnouncements"
|
||||||
|
class="notification unseen"
|
||||||
|
>
|
||||||
<div class="notification-overlay" />
|
<div class="notification-overlay" />
|
||||||
<router-link
|
<router-link
|
||||||
v-if="shouldShowAnnouncements"
|
|
||||||
class="button-unstyled -link extra-notification"
|
class="button-unstyled -link extra-notification"
|
||||||
:to="{ name: 'announcements' }"
|
:to="{ name: 'announcements' }"
|
||||||
>
|
>
|
||||||
@ -30,10 +34,12 @@
|
|||||||
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
|
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="notification unseen">
|
<div
|
||||||
|
v-if="shouldShowFollowRequests"
|
||||||
|
class="notification unseen"
|
||||||
|
>
|
||||||
<div class="notification-overlay" />
|
<div class="notification-overlay" />
|
||||||
<router-link
|
<router-link
|
||||||
v-if="shouldShowFollowRequests"
|
|
||||||
class="button-unstyled -link extra-notification"
|
class="button-unstyled -link extra-notification"
|
||||||
:to="{ name: 'friend-requests' }"
|
:to="{ name: 'friend-requests' }"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user