pleroma-fe/src/components/public_timeline/public_timeline.js

19 lines
405 B
JavaScript
Raw Normal View History

2016-10-26 19:03:55 +02:00
import Timeline from '../timeline/timeline.vue'
const PublicTimeline = {
components: {
Timeline
},
computed: {
timeline () { return this.$store.state.statuses.timelines.public }
},
created () {
2019-04-04 18:03:56 +02:00
this.$store.dispatch('startFetchingTimeline', { timeline: 'public' })
},
destroyed () {
this.$store.dispatch('stopFetchingTimeline', 'public')
2016-10-26 19:03:55 +02:00
}
2016-10-26 19:03:55 +02:00
}
export default PublicTimeline