2023-08-14 03:57:34 +00:00
|
|
|
<template>
|
|
|
|
<div class="ExtraNotifications">
|
|
|
|
<router-link
|
2023-08-19 00:02:58 +00:00
|
|
|
v-if="shouldShowChats"
|
2023-08-14 03:57:34 +00:00
|
|
|
class="button-unstyled -link extra-notification"
|
|
|
|
to="chats"
|
|
|
|
>
|
|
|
|
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
2023-08-19 00:02:58 +00:00
|
|
|
v-if="shouldShowAnnouncements"
|
2023-08-14 03:57:34 +00:00
|
|
|
class="button-unstyled -link extra-notification"
|
|
|
|
to="announcements"
|
|
|
|
>
|
|
|
|
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
|
|
|
|
</router-link>
|
2023-08-19 00:02:58 +00:00
|
|
|
<router-link
|
|
|
|
v-if="shouldShowFollowRequests"
|
|
|
|
class="button-unstyled -link extra-notification"
|
|
|
|
to="friend-requests"
|
|
|
|
>
|
|
|
|
{{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
|
|
|
|
</router-link>
|
2023-08-19 00:34:27 +00:00
|
|
|
<i18n-t
|
|
|
|
v-if="shouldShowCustomizationTip"
|
|
|
|
tag="span"
|
|
|
|
class="extra-notification tip"
|
|
|
|
keypath="notifications.configuration_tip"
|
|
|
|
>
|
|
|
|
<template #theSettings>
|
|
|
|
<button
|
|
|
|
class="button-unstyled -link"
|
|
|
|
@click="openNotificationSettings"
|
|
|
|
>
|
|
|
|
{{ $t('notifications.configuration_tip_settings') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
<template #dismiss>
|
|
|
|
<button
|
|
|
|
class="button-unstyled -link"
|
|
|
|
@click="dismissConfigurationTip"
|
|
|
|
>
|
|
|
|
{{ $t('notifications.configuration_tip_dismiss') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
</i18n-t>
|
2023-08-14 03:57:34 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_notifications.js" />
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "../../variables";
|
|
|
|
|
|
|
|
.ExtraNotifications {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
|
|
.extra-notification {
|
|
|
|
width: 100%;
|
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.extra-notification {
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
border-color: $fallback--border;
|
|
|
|
border-color: var(--border, $fallback--border);
|
|
|
|
}
|
2023-08-19 00:34:27 +00:00
|
|
|
|
|
|
|
.tip {
|
|
|
|
display: inline;
|
|
|
|
}
|
2023-08-14 03:57:34 +00:00
|
|
|
}
|
|
|
|
</style>
|