commit: 27d2ac6f6629f7ac10b2a572d21af124a18ab951
parent 4fcd51122598dbe51bc85c6c193cbfdb15a5da20
Author: Matrix-Sasuke <ken@shigusegubu.club>
Date: Thu, 14 Nov 2024 17:23:05 +0100
fix bookmarks not showing on mobile properly
Diffstat:
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/changelog.d/show-bookmarks-on-mobile.fix b/changelog.d/show-bookmarks-on-mobile.fix
@@ -1 +1 @@
-Bookmarks on mobile were no longer showing
+Bookmarks visible again on mobile
diff --git a/src/components/navigation/navigation.js b/src/components/navigation/navigation.js
@@ -32,7 +32,8 @@ export const TIMELINES = {
bookmarks: {
route: 'bookmarks',
icon: 'bookmark',
- label: 'nav.bookmarks'
+ label: 'nav.bookmarks',
+ criteria: ['!supportsBookmarkFolders']
},
favorites: {
routeObject: { name: 'user-profile', query: { tab: 'favorites' } },
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
@@ -77,6 +77,21 @@
</router-link>
</li>
<li
+ v-if="currentUser"
+ @click="toggleDrawer"
+ >
+ <router-link
+ :to="{ name: 'bookmarks' }"
+ class="menu-item"
+ >
+ <FAIcon
+ fixed-width
+ class="fa-scale-110 fa-old-padding"
+ icon="bookmark"
+ /> {{ $t("nav.bookmarks") }}
+ </router-link>
+ </li>
+ <li
v-if="currentUser && pleromaChatMessagesAvailable"
@click="toggleDrawer"
>