let mobile users customize top bar as well

This commit is contained in:
Henry Jameson 2022-08-12 01:00:41 +03:00
commit c3e7eadddf
6 changed files with 25 additions and 4 deletions

View file

@ -34,6 +34,7 @@ library.add(
faList
)
const NavPanel = {
props: ['forceExpand'],
created () {
if (this.currentUser && this.currentUser.locked) {
this.$store.dispatch('startFetchingFollowRequests')

View file

@ -1,7 +1,10 @@
<template>
<div class="NavPanel">
<div class="panel panel-default">
<div class="panel-heading">
<div
v-if="!forceExpand"
class="panel-heading"
>
<NavigationPins />
<div class="spacer"/>
<button
@ -15,7 +18,7 @@
/>
</button>
</div>
<ul class="panel-body" v-if="!collapsed">
<ul class="panel-body" v-if="!collapsed || forceExpand">
<li v-if="currentUser || !privateMode">
<button
class="button-unstyled menu-item"

View file

@ -15,6 +15,7 @@ import {
faTachometerAlt,
faCog,
faInfoCircle,
faCompass,
faList
} from '@fortawesome/free-solid-svg-icons'
@ -30,6 +31,7 @@ library.add(
faTachometerAlt,
faCog,
faInfoCircle,
faCompass,
faList
)

View file

@ -191,6 +191,18 @@
/> {{ $t("nav.administration") }}
</a>
</li>
<li
v-if="currentUser"
@click="toggleDrawer"
>
<router-link :to="{ name: 'edit-navigation' }">
<FAIcon
fixed-width
class="fa-scale-110 fa-old-padding"
icon="compass"
/> {{ $t("nav.edit_nav_mobile") }}
</router-link>
</li>
<li
v-if="currentUser"
@click="toggleDrawer"