restore clearTimeline
This commit is contained in:
parent
04d94fc680
commit
a9c0edc92e
1 changed files with 10 additions and 0 deletions
|
|
@ -149,6 +149,16 @@ export const useTimelinesStore = defineStore('timelines', {
|
||||||
|
|
||||||
this[timelineName] = emptyTl(timelineName)
|
this[timelineName] = emptyTl(timelineName)
|
||||||
},
|
},
|
||||||
|
clearTimeline(timelineName) {
|
||||||
|
const timeline = this[timelineName]
|
||||||
|
|
||||||
|
timeline.order = []
|
||||||
|
timeline.statusIds = new Set()
|
||||||
|
timeline.visibleStatusIds = new Set()
|
||||||
|
timeline.newStatusCount = 0
|
||||||
|
timeline.maxId = ''
|
||||||
|
timeline.minId = ''
|
||||||
|
},
|
||||||
activatePersistents() {
|
activatePersistents() {
|
||||||
TIMELINES.forEach((name) => {
|
TIMELINES.forEach((name) => {
|
||||||
if (this[name].persistent) {
|
if (this[name].persistent) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue