From ebee2bda639988b3bfa29e0cfc9c6a76bfda5b07 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 18 Aug 2023 21:35:56 -0400 Subject: [PATCH] Add icons to extra notifications --- .../extra_notifications.js | 13 +++++++++++++ .../extra_notifications.vue | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/components/extra_notifications/extra_notifications.js b/src/components/extra_notifications/extra_notifications.js index 01df12a30e..1bb0f83741 100644 --- a/src/components/extra_notifications/extra_notifications.js +++ b/src/components/extra_notifications/extra_notifications.js @@ -1,5 +1,18 @@ import { mapGetters } from 'vuex' +import { library } from '@fortawesome/fontawesome-svg-core' +import { + faUserPlus, + faComments, + faBullhorn +} from '@fortawesome/free-solid-svg-icons' + +library.add( + faUserPlus, + faComments, + faBullhorn +) + const ExtraNotifications = { computed: { shouldShowChats () { diff --git a/src/components/extra_notifications/extra_notifications.vue b/src/components/extra_notifications/extra_notifications.vue index 308c79d1a9..512f515c7a 100644 --- a/src/components/extra_notifications/extra_notifications.vue +++ b/src/components/extra_notifications/extra_notifications.vue @@ -7,6 +7,11 @@ class="button-unstyled -link extra-notification" :to="{ name: 'chats', params: { username: currentUser.screen_name } }" > + {{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }} @@ -17,6 +22,11 @@ class="button-unstyled -link extra-notification" :to="{ name: 'announcements' }" > + {{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }} @@ -27,6 +37,11 @@ class="button-unstyled -link extra-notification" :to="{ name: 'friend-requests' }" > + {{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }} @@ -81,6 +96,10 @@ padding: 1em; } + .icon { + margin-right: 0.5em; + } + .tip { display: inline; }