aboutsummaryrefslogtreecommitdiff
path: root/src/components/nav_panel
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/nav_panel')
-rw-r--r--src/components/nav_panel/nav_panel.js10
-rw-r--r--src/components/nav_panel/nav_panel.vue2
2 files changed, 3 insertions, 9 deletions
diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js
index f09f43a0..42637a82 100644
--- a/src/components/nav_panel/nav_panel.js
+++ b/src/components/nav_panel/nav_panel.js
@@ -1,11 +1,5 @@
import { mapState } from 'vuex'
-
-const timelineRoutes = [
- 'friends',
- 'dms',
- 'public-timeline',
- 'public-external-timeline'
-]
+import { timelineNames } from '../timeline_menu/timeline_menu.js'
const NavPanel = {
created () {
@@ -15,7 +9,7 @@ const NavPanel = {
},
computed: {
onTimelineRoute () {
- return timelineRoutes.includes(this.$route.name)
+ return !!timelineNames()[this.$route.name]
},
...mapState({
currentUser: state => state.users.currentUser,
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue
index 1622eafa..d0e626e6 100644
--- a/src/components/nav_panel/nav_panel.vue
+++ b/src/components/nav_panel/nav_panel.vue
@@ -7,7 +7,7 @@
:to="{ name: 'friends' }"
:class="onTimelineRoute && 'router-link-active'"
>
- <i class="button-icon icon-home-2" /> {{ $t("nav.timeline") }}
+ <i class="button-icon icon-home-2" /> {{ $t("nav.timelines") }}
</router-link>
</li>
<li v-else-if="!privateMode">