aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@gmail.com>2017-08-16 16:40:09 +0300
committerShpuld Shpuldson <shpuld@gmail.com>2017-08-16 16:40:09 +0300
commit2084c92dfff6d7f2c2eb78cad567b7f0a283700b (patch)
treed4e174140611b827eaa325042d9d7a23c05ac41a
parentdbad99cb4fac4750a881773c9add317a8a4d9664 (diff)
Force user profile timeline update when the user id changes (like when another user has been searched/found).
-rw-r--r--src/components/user_profile/user_profile.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 5f9d4d08..48a8a073 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -22,6 +22,12 @@ const UserProfile = {
}
}
},
+ watch: {
+ userId () {
+ this.$store.commit('clearTimeline', { timeline: 'user' })
+ this.$store.dispatch('startFetching', ['user', this.userId])
+ }
+ },
components: {
UserCardContent,
Timeline