fix forms closing in timelines
This commit is contained in:
parent
3fb647b34b
commit
b7755314b1
@ -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
|
||||||
},
|
},
|
||||||
|
@ -23,9 +23,8 @@
|
|||||||
ref="timeline"
|
ref="timeline"
|
||||||
class="timeline"
|
class="timeline"
|
||||||
>
|
>
|
||||||
<template v-for="statusId in pinnedStatusIds">
|
|
||||||
<conversation
|
<conversation
|
||||||
v-if="timeline.statusesObject[statusId]"
|
v-for="statusId in filteredPinnedStatusIds"
|
||||||
:key="statusId + '-pinned'"
|
:key="statusId + '-pinned'"
|
||||||
class="status-fadein"
|
class="status-fadein"
|
||||||
:status-id="statusId"
|
:status-id="statusId"
|
||||||
@ -34,10 +33,8 @@
|
|||||||
:in-profile="inProfile"
|
:in-profile="inProfile"
|
||||||
:profile-user-id="userId"
|
:profile-user-id="userId"
|
||||||
/>
|
/>
|
||||||
</template>
|
|
||||||
<template v-for="status in timeline.visibleStatuses">
|
|
||||||
<conversation
|
<conversation
|
||||||
v-if="timelineName !== 'user' || (status.id >= timeline.minId && status.id <= timeline.maxId)"
|
v-for="status in filteredVisibleStatuses"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
class="status-fadein"
|
class="status-fadein"
|
||||||
:status-id="status.id"
|
:status-id="status.id"
|
||||||
@ -46,7 +43,6 @@
|
|||||||
:profile-user-id="userId"
|
:profile-user-id="userId"
|
||||||
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="classes.footer">
|
<div :class="classes.footer">
|
||||||
|
Loading…
Reference in New Issue
Block a user