pleroma-fe/src/components/extra_notifications/extra_notifications.vue

77 行
1.9 KiB
Vue

<template>
<div class="ExtraNotifications">
<router-link
v-if="shouldShowChats"
class="button-unstyled -link extra-notification"
to="chats"
>
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
</router-link>
<router-link
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>
<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>
</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);
}
.tip {
display: inline;
}
}
</style>