fix route

This commit is contained in:
Shpuld Shpuldson 2020-11-13 16:47:36 +02:00
parent 54ddda401c
commit c403fa62ba
3 changed files with 13 additions and 4 deletions

View file

@ -70,8 +70,8 @@ export default (store) => {
{ name: 'search', path: '/search', component: Search, props: (route) => ({ query: route.query.query }) }, { name: 'search', path: '/search', component: Search, props: (route) => ({ query: route.query.query }) },
{ name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow, beforeEnter: validateAuthenticatedRoute }, { name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow, beforeEnter: validateAuthenticatedRoute },
{ name: 'about', path: '/about', component: About }, { name: 'about', path: '/about', component: About },
{ name: 'user-profile', path: '/(users/)?:name', component: UserProfile }, { name: 'lists', path: '/lists', component: Lists, beforeEnter: validateAuthenticatedRoute },
{ name: 'lists', path: '/lists', component: Lists, beforeEnter: validateAuthenticatedRoute } { name: 'user-profile', path: '/(users/)?:name', component: UserProfile }
] ]
if (store.state.instance.pleromaChatMessagesAvailable) { if (store.state.instance.pleromaChatMessagesAvailable) {

View file

@ -1,5 +1,8 @@
<template> <template>
<div class="Lists"> <div class="Lists panel panel-default">
<div class="panel-heading">
<TimelineMenu />
</div>
<div <div
v-for="list in lists" v-for="list in lists"
:key="list.id" :key="list.id"
@ -16,7 +19,12 @@
</template> </template>
<script> <script>
import TimelineMenu from '../timeline_menu/timeline_menu.vue'
export default { export default {
components: {
TimelineMenu
},
data () { data () {
return { return {
lists: [{ title: 'ASD', id: '1' }, { title: 'ASD2', id: '2' }] lists: [{ title: 'ASD', id: '1' }, { title: 'ASD2', id: '2' }]

View file

@ -28,7 +28,8 @@ export const timelineNames = () => {
'dms': 'nav.dms', 'dms': 'nav.dms',
'public-timeline': 'nav.public_tl', 'public-timeline': 'nav.public_tl',
'public-external-timeline': 'nav.twkn', 'public-external-timeline': 'nav.twkn',
'tag-timeline': 'tag' 'tag-timeline': 'tag',
'lists': 'nav.lists'
} }
} }