limit timeline to 50 statuses when updating visible statuses
This commit is contained in:
parent
18bdc84200
commit
8f6b83fc3d
1 changed files with 4 additions and 1 deletions
|
|
@ -389,7 +389,10 @@ export const useTimelinesStore = defineStore('timelines', {
|
||||||
const timeline = this[timelineName]
|
const timeline = this[timelineName]
|
||||||
|
|
||||||
timeline.newStatusCount = 0
|
timeline.newStatusCount = 0
|
||||||
timeline.visibleStatusIds = new Set([...timeline.statusIds])
|
timeline.order = timeline.order.slice(0, 50)
|
||||||
|
timeline.statusIds = new Set([...timeline.order])
|
||||||
|
timeline.visibleStatusIds = new Set([...timeline.order])
|
||||||
|
this.updateTimelineExtremes(timeline)
|
||||||
},
|
},
|
||||||
syncOrder(timeline) {
|
syncOrder(timeline) {
|
||||||
timeline.order = timeline.order.filter((id) => timeline.statusIds.has(id))
|
timeline.order = timeline.order.filter((id) => timeline.statusIds.has(id))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue