aboutsummaryrefslogtreecommitdiff
path: root/src/components/public_and_external_timeline/public_and_external_timeline.js
blob: bfcce6ae67619172dbd987140389c280924b346d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Timeline from '../timeline/timeline.vue'
const PublicAndExternalTimeline = {
  components: {
    Timeline
  },
  computed: {
    timeline () { return this.$store.state.statuses.timelines.publicAndExternal }
  },
  created () {
    this.$store.dispatch('startFetchingTimeline', { timeline: 'publicAndExternal' })
  },
  unmounted () {
    this.$store.dispatch('stopFetchingTimeline', 'publicAndExternal')
  }
}

export default PublicAndExternalTimeline