From 39b42da724b67e49b34e0b9bb135ebb99be98ad9 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 10 Mar 2023 20:26:13 -0500 Subject: [PATCH] Add drafts to side drawer --- src/components/side_drawer/side_drawer.js | 8 +++++--- src/components/side_drawer/side_drawer.vue | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js index 27019577..a4dfdc0e 100644 --- a/src/components/side_drawer/side_drawer.js +++ b/src/components/side_drawer/side_drawer.js @@ -17,7 +17,8 @@ import { faCog, faInfoCircle, faCompass, - faList + faList, + faFilePen } from '@fortawesome/free-solid-svg-icons' library.add( @@ -33,7 +34,8 @@ library.add( faCog, faInfoCircle, faCompass, - faList + faList, + faFilePen ) const SideDrawer = { @@ -98,7 +100,7 @@ const SideDrawer = { pleromaChatMessagesAvailable: state => state.instance.pleromaChatMessagesAvailable, supportsAnnouncements: state => state.announcements.supportsAnnouncements }), - ...mapGetters(['unreadChatCount', 'unreadAnnouncementCount']) + ...mapGetters(['unreadChatCount', 'unreadAnnouncementCount', 'draftCount']) }, methods: { toggleDrawer () { diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue index 994ac953..697bf64e 100644 --- a/src/components/side_drawer/side_drawer.vue +++ b/src/components/side_drawer/side_drawer.vue @@ -211,6 +211,26 @@ +
  • + + {{ $t('nav.drafts') }} + + {{ draftCount }} + + +