fixes + fixes for anon users
This commit is contained in:
parent
3a16a59f37
commit
0123872b56
8 changed files with 26 additions and 6 deletions
|
|
@ -1,7 +1,6 @@
|
|||
export const TIMELINES = {
|
||||
home: {
|
||||
route: 'friends',
|
||||
anonRoute: 'public-timeline',
|
||||
icon: 'home',
|
||||
label: 'nav.home_timeline',
|
||||
criteria: ['!private']
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
@click.stop.prevent="togglePin(item.name)"
|
||||
>
|
||||
<FAIcon
|
||||
v-if="showPin"
|
||||
v-if="showPin && currentUser"
|
||||
fixed-width
|
||||
class="fa-scale-110"
|
||||
:class="{ 'veryfaint': !isPinned(item.name) }"
|
||||
|
|
|
|||
|
|
@ -42,6 +42,13 @@ const NavPanel = {
|
|||
pinnedItems: state => new Set(state.serverSideStorage.prefsStorage.collections.pinnedNavItems)
|
||||
}),
|
||||
pinnedList () {
|
||||
if (!this.currentUser) {
|
||||
return [
|
||||
{ ...TIMELINES.public, name: 'public' },
|
||||
{ ...TIMELINES.twkn, name: 'twkn' },
|
||||
{ ...ROOT_ITEMS.about, name: 'about' }
|
||||
]
|
||||
}
|
||||
return filterNavigation(
|
||||
[
|
||||
...Object
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
position: relative;
|
||||
flex: 0 0 3em;
|
||||
min-width: 2em;
|
||||
text-align: center;
|
||||
|
||||
& .svg-inline--fa,
|
||||
& .iconLetter {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue