mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-27 13:38:54 +01:00
web/state/queue: add nukeEntireQueue()
This commit is contained in:
parent
a8bb64ffb1
commit
3f46395bd2
1 changed files with 9 additions and 0 deletions
|
@ -58,4 +58,13 @@ export function removeFromOngoingQueue(id: string) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function nukeEntireQueue() {
|
||||||
|
update(() => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
updateOngoing(() => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export { queue, ongoingQueue };
|
export { queue, ongoingQueue };
|
||||||
|
|
Loading…
Reference in a new issue