20 lines
415 B
JavaScript
20 lines
415 B
JavaScript
import Timeline from '../timeline/timeline.vue'
|
|
|
|
const PublicTimeline = {
|
|
components: {
|
|
Timeline,
|
|
},
|
|
computed: {
|
|
timeline() {
|
|
return this.$store.state.statuses.timelines.public
|
|
},
|
|
},
|
|
created() {
|
|
this.$store.dispatch('startFetchingTimeline', { timeline: 'public' })
|
|
},
|
|
unmounted() {
|
|
this.$store.dispatch('stopFetchingTimeline', 'public')
|
|
},
|
|
}
|
|
|
|
export default PublicTimeline
|