diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-16 11:17:47 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-16 11:17:47 +0100 |
| commit | 832bd3cdd27d5ca10df6f67a51ac84c8cfa9c05d (patch) | |
| tree | bf1126bf0602c903a5cf187b90b5cd1367a24355 /src/components/public_timeline | |
| parent | 14f07dde5ddeb968b26fed239ebf03ad95aa408d (diff) | |
Fetch Public and TWKN timelines when viewed.
Diffstat (limited to 'src/components/public_timeline')
| -rw-r--r-- | src/components/public_timeline/public_timeline.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
