Clear timeline on user change.

This commit is contained in:
Roger Braun 2017-06-12 16:30:56 +02:00
parent 2e7029b670
commit bda0a76c89
2 changed files with 16 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import Timeline from '../timeline/timeline.vue'
const UserProfile = {
created () {
this.$store.commit('clearTimeline', { timeline: 'user' })
this.$store.dispatch('startFetching', ['user', this.userId])
},
destroyed () {