aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-06-12 16:20:02 +0200
committerRoger Braun <roger@rogerbraun.net>2017-06-12 16:20:02 +0200
commit2e7029b67027dae7ee3202553c0c9e288c882730 (patch)
tree967f435c1a63e26f5eebe346747c449f80db6c77 /src/components/user_profile/user_profile.js
parent090148ef6051ec2399fe47281db9f73955297d97 (diff)
Display user timeline
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 4f35cf27..5eef2735 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -1,13 +1,15 @@
import UserCardContent from '../user_card_content/user_card_content.vue'
+import Timeline from '../timeline/timeline.vue'
const UserProfile = {
created () {
this.$store.dispatch('startFetching', ['user', this.userId])
},
destroyed () {
- this.$store.dispatch('stopFetching', ['user', this.userId])
+ this.$store.dispatch('stopFetching', 'user')
},
computed: {
+ timeline () { return this.$store.state.statuses.timelines.user },
userId () {
return this.$route.params.id
},
@@ -16,7 +18,8 @@ const UserProfile = {
}
},
components: {
- UserCardContent
+ UserCardContent,
+ Timeline
}
}