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

19 lines
375 B
JavaScript
Raw Normal View History

2016-10-26 17:03:55 +00:00
import Timeline from '../timeline/timeline.vue'
const PublicTimeline = {
components: {
Timeline
},
computed: {
timeline () { return this.$store.state.statuses.timelines.public }
},
created () {
this.$store.dispatch('startFetching', 'public')
},
destroyed () {
this.$store.dispatch('stopFetching', 'public')
2016-10-26 17:03:55 +00:00
}
2016-10-26 17:03:55 +00:00
}
export default PublicTimeline