clarity
This commit is contained in:
parent
645585b033
commit
ad2689a5eb
2 changed files with 5 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ export const filterNavigation = (list = [], {
|
|||
if ((!currentUser || !currentUser.locked) && set.has('lockedUser')) return false
|
||||
if (!hasChats && set.has('chats')) return false
|
||||
if (!hasAnnouncements && set.has('announcements')) return false
|
||||
if (supportsBookmarkFolders && set.has('!supportsBookmarkFolders')) return false
|
||||
if (supportsBubbleTimeline && set.has('!supportsBubbleTimeline')) return false
|
||||
if (!supportsBookmarkFolders && set.has('supportsBookmarkFolders')) return false
|
||||
if (!supportsBubbleTimeline && set.has('supportsBubbleTimeline')) return false
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,9 +29,10 @@ export const TIMELINES = {
|
|||
},
|
||||
bubble: {
|
||||
route: 'bubble',
|
||||
anon: true,
|
||||
icon: 'city',
|
||||
label: 'nav.bubble',
|
||||
criteria: ['supportsBubbleTimeline']
|
||||
criteria: ['!private', 'federating', 'supportsBubbleTimeline']
|
||||
},
|
||||
twkn: {
|
||||
route: 'public-external-timeline',
|
||||
|
|
@ -44,7 +45,7 @@ export const TIMELINES = {
|
|||
route: 'bookmarks',
|
||||
icon: 'bookmark',
|
||||
label: 'nav.bookmarks',
|
||||
criteria: ['!supportsBookmarkFolders']
|
||||
criteria: ['supportsBookmarkFolders']
|
||||
},
|
||||
favorites: {
|
||||
routeObject: { name: 'user-profile', query: { tab: 'favorites' } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue