update prop name

This commit is contained in:
taehoon 2019-07-19 21:48:09 -04:00
parent 7f9feacd26
commit 4826d72549
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ const Timeline = {
'tag', 'tag',
'embedded', 'embedded',
'count', 'count',
'excludedStatusIds' 'pinnedStatusIds'
], ],
data () { data () {
return { return {
@ -42,8 +42,8 @@ const Timeline = {
} }
}, },
statuses () { statuses () {
if (this.excludedStatusIds && this.excludedStatusIds.length > 0) { if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) {
return this.timeline.visibleStatuses && this.timeline.visibleStatuses.filter(status => !this.excludedStatusIds.includes(status.id)) return this.timeline.visibleStatuses && this.timeline.visibleStatuses.filter(status => !this.pinnedStatusIds.includes(status.id))
} else { } else {
return this.timeline.visibleStatuses return this.timeline.visibleStatuses
} }

View File

@ -34,6 +34,7 @@
:timeline="timeline" :timeline="timeline"
:timeline-name="'user'" :timeline-name="'user'"
:user-id="userId" :user-id="userId"
:pinned-status-ids="user.pinnedStatuseIds"
/> />
</div> </div>
<div <div
@ -75,7 +76,6 @@
timeline-name="media" timeline-name="media"
:timeline="media" :timeline="media"
:user-id="userId" :user-id="userId"
:excludedStatusIds="user.pinnedStatuseIds"
/> />
<Timeline <Timeline
v-if="isUs" v-if="isUs"