diff options
Diffstat (limited to 'src/components/timeline')
| -rw-r--r-- | src/components/timeline/timeline.js | 3 | ||||
| -rw-r--r-- | src/components/timeline/timeline.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index aac3869f..2e317e8e 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -59,6 +59,9 @@ const Timeline = { const ids = getExcludedStatusIdsByPinning(this.timeline.visibleStatuses, this.pinnedStatusIds) // Convert id array to object return keyBy(ids, id => id) + }, + pinnedStatusIdsObject () { + return keyBy(this.pinnedStatusIds, id => id) } }, components: { diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 23795bec..4ad51714 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -35,7 +35,7 @@ class="status-fadein" :statusoid="timeline.statusesObject[statusId]" :collapsable="true" - :pinned-status-ids="pinnedStatusIds" + :pinned-status-ids-object="pinnedStatusIdsObject" /> </template> <template v-for="status in timeline.visibleStatuses"> |
