Use userId in timeline.
This commit is contained in:
parent
bda0a76c89
commit
5328aca1ef
2 changed files with 7 additions and 4 deletions
|
@ -6,7 +6,8 @@ const Timeline = {
|
||||||
props: [
|
props: [
|
||||||
'timeline',
|
'timeline',
|
||||||
'timelineName',
|
'timelineName',
|
||||||
'title'
|
'title',
|
||||||
|
'userId'
|
||||||
],
|
],
|
||||||
computed: {
|
computed: {
|
||||||
timelineError () { return this.$store.state.statuses.error }
|
timelineError () { return this.$store.state.statuses.error }
|
||||||
|
@ -26,7 +27,8 @@ const Timeline = {
|
||||||
store,
|
store,
|
||||||
credentials,
|
credentials,
|
||||||
timeline: this.timelineName,
|
timeline: this.timelineName,
|
||||||
showImmediately
|
showImmediately,
|
||||||
|
userId: this.userId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -42,7 +44,8 @@ const Timeline = {
|
||||||
credentials,
|
credentials,
|
||||||
timeline: this.timelineName,
|
timeline: this.timelineName,
|
||||||
older: true,
|
older: true,
|
||||||
showImmediately: true
|
showImmediately: true,
|
||||||
|
userId: this.userId
|
||||||
}).then(() => store.commit('setLoading', { timeline: this.timelineName, value: false }))
|
}).then(() => store.commit('setLoading', { timeline: this.timelineName, value: false }))
|
||||||
},
|
},
|
||||||
scrollLoad (e) {
|
scrollLoad (e) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div v-if="user" class="user-profile panel panel-default base00-background">
|
<div v-if="user" class="user-profile panel panel-default base00-background">
|
||||||
<user-card-content :user="user"></user-card-content>
|
<user-card-content :user="user"></user-card-content>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue