From cde6acdbbd3a363832cfaf192b211c2576e5cc10 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Tue, 7 Jul 2020 18:20:37 +0300 Subject: [PATCH] update navigation, rename timeline link in nav panel to timelines --- src/components/nav_panel/nav_panel.js | 3 +++ src/components/nav_panel/nav_panel.vue | 9 ++------- src/components/side_drawer/side_drawer.js | 3 +++ src/components/side_drawer/side_drawer.vue | 19 +++---------------- 4 files changed, 11 insertions(+), 23 deletions(-) diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index 42637a82..d9e87a1b 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -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, diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index d0e626e6..dd6a433b 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -2,19 +2,14 @@