let mobile users customize top bar as well
This commit is contained in:
parent
0123872b56
commit
c3e7eadddf
6 changed files with 25 additions and 4 deletions
|
|
@ -34,6 +34,7 @@ library.add(
|
|||
faList
|
||||
)
|
||||
const NavPanel = {
|
||||
props: ['forceExpand'],
|
||||
created () {
|
||||
if (this.currentUser && this.currentUser.locked) {
|
||||
this.$store.dispatch('startFetchingFollowRequests')
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue