From b7755314b1dec6b7ff187d59fdf3a5f914b5be61 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 24 Mar 2022 14:09:25 +0200 Subject: [PATCH] fix forms closing in timelines --- src/components/timeline/timeline.js | 6 ++++ src/components/timeline/timeline.vue | 44 +++++++++++++--------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index e896a23c0f..6ede1dc528 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -40,6 +40,12 @@ const Timeline = { TimelineQuickSettings }, computed: { + filteredVisibleStatuses () { + return this.timeline.visibleStatuses.filter(status => this.timelineName !== 'user' || (status.id >= this.timeline.minId && status.id <= this.timeline.maxId)) + }, + filteredPinnedStatusesId () { + return this.pinnedStatusIds.filter(statusId => this.timeline.statusesObject[statusId]) + }, newStatusCount () { return this.timeline.newStatusCount }, diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index ff16208d98..d37a9e2af5 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -23,30 +23,26 @@ ref="timeline" class="timeline" > - - + +