From 832bd3cdd27d5ca10df6f67a51ac84c8cfa9c05d Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 16 Feb 2017 11:17:47 +0100 Subject: Fetch Public and TWKN timelines when viewed. --- src/components/public_timeline/public_timeline.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/components/public_timeline/public_timeline.js') diff --git a/src/components/public_timeline/public_timeline.js b/src/components/public_timeline/public_timeline.js index cac422ec..9b866be8 100644 --- a/src/components/public_timeline/public_timeline.js +++ b/src/components/public_timeline/public_timeline.js @@ -5,7 +5,14 @@ const PublicTimeline = { }, computed: { timeline () { return this.$store.state.statuses.timelines.public } + }, + created () { + this.$store.dispatch('startFetching', 'public') + }, + destroyed () { + this.$store.dispatch('stopFetching', 'public') } + } export default PublicTimeline -- cgit v1.2.3-70-g09d2