Load timeline once on creation.
This commit is contained in:
parent
3bb2e91dbf
commit
c9e235f889
1 changed files with 11 additions and 0 deletions
|
@ -9,6 +9,17 @@ const Timeline = {
|
||||||
components: {
|
components: {
|
||||||
Status
|
Status
|
||||||
},
|
},
|
||||||
|
created () {
|
||||||
|
const store = this.$store
|
||||||
|
const credentials = store.state.users.currentUser.credentials
|
||||||
|
|
||||||
|
timelineFetcher.fetchAndUpdate({
|
||||||
|
store,
|
||||||
|
credentials,
|
||||||
|
timeline: this.timelineName,
|
||||||
|
showImmediately: true
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showNewStatuses () {
|
showNewStatuses () {
|
||||||
this.$store.commit('showNewStatuses', { timeline: this.timelineName })
|
this.$store.commit('showNewStatuses', { timeline: this.timelineName })
|
||||||
|
|
Loading…
Reference in a new issue