diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-06 20:11:00 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-06 20:11:00 +0100 |
| commit | c9e235f8898c4f1c4c1c2d5111ad34b1dd4ffa10 (patch) | |
| tree | ed5923ff019e96520e7176e848437125f3bea4b6 /src | |
| parent | 3bb2e91dbf740e77b25bc5256abfd7307a2bd04b (diff) | |
Load timeline once on creation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/timeline/timeline.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 113455f4..e0c75d76 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -9,6 +9,17 @@ const Timeline = { components: { Status }, + created () { + const store = this.$store + const credentials = store.state.users.currentUser.credentials + + timelineFetcher.fetchAndUpdate({ + store, + credentials, + timeline: this.timelineName, + showImmediately: true + }) + }, methods: { showNewStatuses () { this.$store.commit('showNewStatuses', { timeline: this.timelineName }) |
