akkoma-fe/src/components/public_and_external_timeline/public_and_external_timeline.js
2019-02-07 16:23:18 -07:00

18 lines
443 B
JavaScript

import Timeline from '../timeline/timeline.vue'
const PublicAndExternalTimeline = {
components: {
Timeline
},
computed: {
timeline () { return this.$store.state.statuses.timelines.publicAndExternal }
},
created () {
this.$store.dispatch('startFetching', { timeline: 'publicAndExternal' })
},
destroyed () {
this.$store.dispatch('stopFetching', 'publicAndExternal')
}
}
export default PublicAndExternalTimeline