diff options
| author | lambadalambda <gitgud@rogerbraun.net> | 2017-08-16 09:51:32 -0400 |
|---|---|---|
| committer | lambadalambda <gitgud@rogerbraun.net> | 2017-08-16 09:51:32 -0400 |
| commit | 0ece2f04fdd2f8001ae9552ea3ae12fa90f23775 (patch) | |
| tree | d4e174140611b827eaa325042d9d7a23c05ac41a | |
| parent | dbad99cb4fac4750a881773c9add317a8a4d9664 (diff) | |
| parent | 2084c92dfff6d7f2c2eb78cad567b7f0a283700b (diff) | |
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
| -rw-r--r-- | src/components/user_profile/user_profile.js | 6 |
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 |
