pleroma-fe/src/components/public_timeline/public_timeline.js
2019-02-07 16:23:18 -07:00

18 lines
389 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('startFetching', { timeline: 'public' })
},
destroyed () {
this.$store.dispatch('stopFetching', 'public')
}
}
export default PublicTimeline