fix forms closing in timelines

This commit is contained in:
Henry Jameson 2022-03-24 14:09:25 +02:00
parent 3fb647b34b
commit b7755314b1
2 changed files with 26 additions and 24 deletions

View File

@ -40,6 +40,12 @@ const Timeline = {
TimelineQuickSettings TimelineQuickSettings
}, },
computed: { 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 () { newStatusCount () {
return this.timeline.newStatusCount return this.timeline.newStatusCount
}, },

View File

@ -23,30 +23,26 @@
ref="timeline" ref="timeline"
class="timeline" class="timeline"
> >
<template v-for="statusId in pinnedStatusIds"> <conversation
<conversation v-for="statusId in filteredPinnedStatusIds"
v-if="timeline.statusesObject[statusId]" :key="statusId + '-pinned'"
:key="statusId + '-pinned'" class="status-fadein"
class="status-fadein" :status-id="statusId"
:status-id="statusId" :collapsable="true"
:collapsable="true" :pinned-status-ids-object="pinnedStatusIdsObject"
:pinned-status-ids-object="pinnedStatusIdsObject" :in-profile="inProfile"
:in-profile="inProfile" :profile-user-id="userId"
:profile-user-id="userId" />
/> <conversation
</template> v-for="status in filteredVisibleStatuses"
<template v-for="status in timeline.visibleStatuses"> :key="status.id"
<conversation class="status-fadein"
v-if="timelineName !== 'user' || (status.id >= timeline.minId && status.id <= timeline.maxId)" :status-id="status.id"
:key="status.id" :collapsable="true"
class="status-fadein" :in-profile="inProfile"
:status-id="status.id" :profile-user-id="userId"
:collapsable="true" :virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
:in-profile="inProfile" />
:profile-user-id="userId"
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
/>
</template>
</div> </div>
</div> </div>
<div :class="classes.footer"> <div :class="classes.footer">