Show unread marker for extra notifications

This commit is contained in:
tusooa 2023-08-18 21:19:41 -04:00
parent 50bad0fc68
commit c6715b346b
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
1 changed files with 32 additions and 26 deletions

View File

@ -1,30 +1,39 @@
<template> <template>
<div class="ExtraNotifications"> <div class="ExtraNotifications">
<router-link <div class="notification unseen">
v-if="shouldShowChats" <div class="notification-overlay"></div>
class="button-unstyled -link extra-notification" <router-link
:to="{ name: 'chats', params: { username: currentUser.screen_name } }" v-if="shouldShowChats"
> class="button-unstyled -link extra-notification-link"
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }} :to="{ name: 'chats', params: { username: currentUser.screen_name } }"
</router-link> >
<router-link {{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
v-if="shouldShowAnnouncements" </router-link>
class="button-unstyled -link extra-notification" </div>
:to="{ name: 'announcements' }" <div class="notification unseen">
> <div class="notification-overlay"></div>
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }} <router-link
</router-link> v-if="shouldShowAnnouncements"
<router-link class="button-unstyled -link extra-notification-link"
v-if="shouldShowFollowRequests" :to="{ name: 'announcements' }"
class="button-unstyled -link extra-notification" >
:to="{ name: 'friend-requests' }" {{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
> </router-link>
{{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }} </div>
</router-link> <div class="notification unseen">
<div class="notification-overlay"></div>
<router-link
v-if="shouldShowFollowRequests"
class="button-unstyled -link extra-notification-link"
:to="{ name: 'friend-requests' }"
>
{{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
</router-link>
</div>
<i18n-t <i18n-t
v-if="shouldShowCustomizationTip" v-if="shouldShowCustomizationTip"
tag="span" tag="span"
class="extra-notification tip" class="notification tip"
keypath="notifications.configuration_tip" keypath="notifications.configuration_tip"
> >
<template #theSettings> <template #theSettings>
@ -58,12 +67,9 @@
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
.extra-notification { .notification {
width: 100%; width: 100%;
padding: 1em; padding: 1em;
}
.extra-notification {
border-bottom: 1px solid; border-bottom: 1px solid;
border-color: $fallback--border; border-color: $fallback--border;
border-color: var(--border, $fallback--border); border-color: var(--border, $fallback--border);