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 e896a23c..6ede1dc5 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 ff16208d..d37a9e2a 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -23,30 +23,26 @@ ref="timeline" class="timeline" > - - + +