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

View File

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