update navigation, rename timeline link in nav panel to timelines

This commit is contained in:
Shpuld Shpuldson 2020-07-07 18:20:37 +03:00
parent ddde05771f
commit cde6acdbbd
4 changed files with 11 additions and 23 deletions

View file

@ -11,6 +11,9 @@ const NavPanel = {
onTimelineRoute () {
return !!timelineNames()[this.$route.name]
},
timelinesRoute () {
return this.currentUser ? 'friends' : 'public-timeline'
},
...mapState({
currentUser: state => state.users.currentUser,
followRequestCount: state => state.api.followRequests.length,