2017-09-17 13:26:35 +02:00
|
|
|
import Timeline from '../timeline/timeline.vue'
|
|
|
|
|
|
|
|
const TagTimeline = {
|
|
|
|
created () {
|
|
|
|
this.$store.commit('clearTimeline', { timeline: 'tag' })
|
2019-02-08 00:23:18 +01:00
|
|
|
this.$store.dispatch('startFetching', { 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-02-08 00:23:18 +01:00
|
|
|
this.$store.dispatch('startFetching', { timeline: 'tag', tag: this.tag })
|
2017-09-17 13:26:35 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
destroyed () {
|
|
|
|
this.$store.dispatch('stopFetching', 'tag')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default TagTimeline
|