aboutsummaryrefslogtreecommitdiff
path: root/src/components/public_timeline/public_timeline.js
blob: 64c951ac7c3e49d8a2997191c8b3dff8ab9de4d2 (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('startFetching', { timeline: 'public' })
  },
  destroyed () {
    this.$store.dispatch('stopFetching', 'public')
  }

}

export default PublicTimeline