forked from AkkomaGang/akkoma-fe
fix non-timeline routes breaking current/previous timeline
This commit is contained in:
parent
fdbacba36a
commit
e86c5ea1fa
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="classes.root">
|
<div :class="classes.root">
|
||||||
<div :class="classes.header">
|
<div :class="classes.header">
|
||||||
<TimelineMenu />
|
<TimelineMenu v-if="!embedded" />
|
||||||
<div
|
<div
|
||||||
v-if="timelineError"
|
v-if="timelineError"
|
||||||
class="loadmore-error alert error"
|
class="loadmore-error alert error"
|
||||||
|
|
|
@ -26,7 +26,9 @@ const TimelineMenu = {
|
||||||
if (this.currentUser && this.currentUser.locked) {
|
if (this.currentUser && this.currentUser.locked) {
|
||||||
this.$store.dispatch('startFetchingFollowRequests')
|
this.$store.dispatch('startFetchingFollowRequests')
|
||||||
}
|
}
|
||||||
|
if (timelineNames().includes(this.$route.name)) {
|
||||||
this.$store.dispatch('setLastTimeline', this.$route.name)
|
this.$store.dispatch('setLastTimeline', this.$route.name)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openMenu () {
|
openMenu () {
|
||||||
|
|
Loading…
Reference in a new issue