1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 14:25:08 +01:00

Load timeline once on creation.

This commit is contained in:
Roger Braun 2016-11-06 20:11:00 +01:00
parent 3bb2e91dbf
commit c9e235f889

View File

@ -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 })