commit: 0ece2f04fdd2f8001ae9552ea3ae12fa90f23775
parent: dbad99cb4fac4750a881773c9add317a8a4d9664
Author: lambadalambda <gitgud@rogerbraun.net>
Date: Wed, 16 Aug 2017 09:51:32 -0400
Merge branch 'fix/user-finder-updates-user-timeline' into 'develop'
Force user profile timeline update when the user id changes
Closes #23
See merge request !94
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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