2017-09-17 13:26:35 +02:00
|
|
|
import Timeline from '../timeline/timeline.vue'
|
|
|
|
|
|
|
|
const TagTimeline = {
|
|
|
|
created () {
|
|
|
|
this.$store.commit('clearTimeline', { timeline: 'tag' })
|
2019-04-04 18:03:56 +02:00
|
|
|
this.$store.dispatch('startFetchingTimeline', { timeline: 'tag', tag: this.tag })
|
2017-09-17 13:26:35 +02:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Timeline
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
tag () { return this.$route.params.tag },
|
|
|
|
timeline () { return this.$store.state.statuses.timelines.tag }
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
tag () {
|
|
|
|
this.$store.commit('clearTimeline', { timeline: 'tag' })
|
2019-04-04 18:03:56 +02:00
|
|
|
this.$store.dispatch('startFetchingTimeline', { timeline: 'tag', tag: this.tag })
|
2017-09-17 13:26:35 +02:00
|
|
|
}
|
|
|
|
},
|
2022-04-05 23:17:53 +02:00
|
|
|
unmounted () {
|
2019-12-08 15:05:41 +01:00
|
|
|
this.$store.dispatch('stopFetchingTimeline', 'tag')
|
2017-09-17 13:26:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default TagTimeline
|