logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 038b45e64a69cec5a58053442de6f71576752be8
parent f715de43f2bae1593128f34f7362c1963a54e3a1
Author: tusooa <tusooa@kazv.moe>
Date:   Mon,  7 Nov 2022 13:39:48 -0500

Add labels to mobile navs

Diffstat:

Msrc/components/mobile_nav/mobile_nav.vue5+++++
Msrc/i18n/en.json6+++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue @@ -10,6 +10,8 @@ <div class="item"> <button class="button-unstyled mobile-nav-button" + :title="$t('nav.mobile_sidebar')" + :aria-expanaded="this.$refs.sideDrawer && !this.$refs.sideDrawer.closed" @click.stop.prevent="toggleMobileSidebar()" > <FAIcon @@ -26,6 +28,7 @@ <button v-if="currentUser" class="button-unstyled mobile-nav-button" + :title="unseenNotificationsCount ? $t('nav.mobile_notifications_unread_active') : $t('nav.mobile_notifications')" @click.stop.prevent="openMobileNotifications()" > <FAIcon @@ -52,6 +55,7 @@ <button v-if="notificationsAtTop" class="button-unstyled mobile-nav-button" + :title="$t('general.scroll_to_top')" @click.stop.prevent="scrollMobileNotificationsToTop" > <FALayers class="fa-scale-110 fa-old-padding-layer"> @@ -64,6 +68,7 @@ </button> <button class="button-unstyled mobile-nav-button" + :title="$t('nav.mobile_notifications_close')" @click.stop.prevent="closeMobileNotifications(true)" > <FAIcon diff --git a/src/i18n/en.json b/src/i18n/en.json @@ -158,7 +158,11 @@ "lists": "Lists", "edit_nav_mobile": "Customize navigation bar", "edit_pinned": "Edit pinned items", - "edit_finish": "Done editing" + "edit_finish": "Done editing", + "mobile_sidebar": "Toggle mobile sidebar", + "mobile_notifications": "Open notifications", + "mobile_notifications": "Open notifications (there are unread ones)", + "mobile_notifications_close": "Close notifications" }, "notifications": { "broken_favorite": "Unknown status, searching for it…",