Add buttons to menus

This commit is contained in:
Sol Fisher Romanoff 2022-06-14 23:53:51 +03:00
parent 6e8c7460a2
commit d2c82a04d9
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62
5 changed files with 34 additions and 5 deletions

View file

@ -12,7 +12,8 @@ import {
faComments, faComments,
faBell, faBell,
faInfoCircle, faInfoCircle,
faStream faStream,
faList
} from '@fortawesome/free-solid-svg-icons' } from '@fortawesome/free-solid-svg-icons'
library.add( library.add(
@ -25,7 +26,8 @@ library.add(
faComments, faComments,
faBell, faBell,
faInfoCircle, faInfoCircle,
faStream faStream,
faList
) )
const NavPanel = { const NavPanel = {

View file

@ -25,6 +25,18 @@
<TimelineMenuContent class="timelines" /> <TimelineMenuContent class="timelines" />
</div> </div>
</li> </li>
<li v-if="currentUser">
<router-link
class="menu-item"
:to="{ name: 'lists' }"
>
<FAIcon
fixed-width
class="fa-scale-110"
icon="list"
/>{{ $t("nav.lists") }}
</router-link>
</li>
<li v-if="currentUser"> <li v-if="currentUser">
<router-link <router-link
class="menu-item" class="menu-item"

View file

@ -14,7 +14,8 @@ import {
faSearch, faSearch,
faTachometerAlt, faTachometerAlt,
faCog, faCog,
faInfoCircle faInfoCircle,
faList
} from '@fortawesome/free-solid-svg-icons' } from '@fortawesome/free-solid-svg-icons'
library.add( library.add(
@ -28,7 +29,8 @@ library.add(
faSearch, faSearch,
faTachometerAlt, faTachometerAlt,
faCog, faCog,
faInfoCircle faInfoCircle,
faList
) )
const SideDrawer = { const SideDrawer = {

View file

@ -55,6 +55,18 @@
/> {{ $t("nav.timelines") }} /> {{ $t("nav.timelines") }}
</router-link> </router-link>
</li> </li>
<li
v-if="currentUser"
@click="toggleDrawer"
>
<router-link :to="{ name: 'lists' }">
<FAIcon
fixed-width
class="fa-scale-110 fa-old-padding"
icon="list"
/> {{ $t("nav.lists") }}
</router-link>
</li>
<li <li
v-if="currentUser && pleromaChatMessagesAvailable" v-if="currentUser && pleromaChatMessagesAvailable"
@click="toggleDrawer" @click="toggleDrawer"

View file

@ -146,7 +146,8 @@
"who_to_follow": "Who to follow", "who_to_follow": "Who to follow",
"preferences": "Preferences", "preferences": "Preferences",
"timelines": "Timelines", "timelines": "Timelines",
"chats": "Chats" "chats": "Chats",
"lists": "Lists"
}, },
"notifications": { "notifications": {
"broken_favorite": "Unknown status, searching for it…", "broken_favorite": "Unknown status, searching for it…",