logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 98bbb4eeef0364b42a9ac626eddc0bf7081fa3b5
parent 71f16ec39c2ae1e5c4d2a842f894f2469dfa5079
Author: tusooa <tusooa@kazv.moe>
Date:   Fri, 10 Mar 2023 20:26:13 -0500

Add drafts to side drawer

Diffstat:

Msrc/components/side_drawer/side_drawer.js8+++++---
Msrc/components/side_drawer/side_drawer.vue21+++++++++++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)

diff --git 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 @@ -245,6 +245,27 @@ @click="toggleDrawer" > <router-link + :to="{ name: 'drafts' }" + class="menu-item" + > + <FAIcon + fixed-width + class="fa-scale-110 fa-old-padding" + icon="file-pen" + /> {{ $t('nav.drafts') }} + <span + v-if="draftCount" + class="badge badge-notification" + > + {{ draftCount }} + </span> + </router-link> + </li> + <li + v-if="currentUser" + @click="toggleDrawer" + > + <router-link :to="{ name: 'edit-navigation' }" class="menu-item" >