fixes + fixes for anon users
This commit is contained in:
parent
3a16a59f37
commit
0123872b56
8 changed files with 26 additions and 6 deletions
|
|
@ -86,6 +86,19 @@ const NavPanel = {
|
|||
pinnedItems: state => new Set(state.serverSideStorage.prefsStorage.collections.pinnedNavItems),
|
||||
collapsed: state => state.serverSideStorage.prefsStorage.simple.collapseNav
|
||||
}),
|
||||
timelinesItems () {
|
||||
return filterNavigation(
|
||||
Object
|
||||
.entries({ ...TIMELINES })
|
||||
.map(([k, v]) => ({ ...v, name: k })),
|
||||
{
|
||||
hasChats: this.pleromaChatMessagesAvailable,
|
||||
isFederating: this.federating,
|
||||
isPrivate: this.private,
|
||||
currentUser: this.currentUser
|
||||
}
|
||||
)
|
||||
},
|
||||
rootItems () {
|
||||
return filterNavigation(
|
||||
Object
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
class="timelines-background"
|
||||
>
|
||||
<ul class="timelines">
|
||||
<NavigationEntry v-for="item in timelinesList" :key="item.name" :show-pin="true" :item="item" />
|
||||
<NavigationEntry v-for="item in timelinesItems" :key="item.name" :show-pin="true" :item="item" />
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue