diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-06-12 16:34:41 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-06-12 16:34:41 +0200 |
| commit | 5328aca1efcdd09089bda9068efca9b940c2f6fa (patch) | |
| tree | 140ff52232b5b6b08d0db540deefa0f00b171200 /src | |
| parent | bda0a76c89cadc6251261a08575acf6986da1084 (diff) | |
Use userId in timeline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/timeline/timeline.js | 9 | ||||
| -rw-r--r-- | src/components/user_profile/user_profile.vue | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 7aaa81c8..3dc07f9e 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -6,7 +6,8 @@ const Timeline = { props: [ 'timeline', 'timelineName', - 'title' + 'title', + 'userId' ], computed: { timelineError () { return this.$store.state.statuses.error } @@ -26,7 +27,8 @@ const Timeline = { store, credentials, timeline: this.timelineName, - showImmediately + showImmediately, + userId: this.userId }) }, methods: { @@ -42,7 +44,8 @@ const Timeline = { credentials, timeline: this.timelineName, older: true, - showImmediately: true + showImmediately: true, + userId: this.userId }).then(() => store.commit('setLoading', { timeline: this.timelineName, value: false })) }, scrollLoad (e) { diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 0765b01c..9241c469 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -3,7 +3,7 @@ <div v-if="user" class="user-profile panel panel-default base00-background"> <user-card-content :user="user"></user-card-content> </div> - <Timeline :title="'User Timeline'" v-bind:timeline="timeline" v-bind:timeline-name="'user'"/> + <Timeline :title="'User Timeline'" v-bind:timeline="timeline" v-bind:timeline-name="'user'" :user-id="userId"/> </div> </template> |
