2022-06-15 17:12:05 +03:00
|
|
|
import Timeline from '../timeline/timeline.vue'
|
|
|
|
const ListTimeline = {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
listId: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Timeline
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
timeline () { return this.$store.state.statuses.timelines.list }
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
this.listId = this.$route.params.id
|
|
|
|
this.$store.dispatch('startFetchingTimeline', { timeline: 'list', listId: this.listId })
|
|
|
|
},
|
|
|
|
unmounted () {
|
|
|
|
this.$store.dispatch('stopFetchingTimeline', 'list')
|
2022-06-16 11:32:58 +03:00
|
|
|
this.$store.commit('clearTimeline', { timeline: 'list' })
|
2022-06-15 17:12:05 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ListTimeline
|