aboutsummaryrefslogtreecommitdiff
path: root/src/components/public_timeline/public_timeline.js
blob: 8976a99c4abc10eb38eb93e912470c46d75ade60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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' })
  },
  destroyed () {
    this.$store.dispatch('stopFetching', 'public')
  }

}

export default PublicTimeline