mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
web/state/queue: add nukeEntireQueue()
This commit is contained in:
parent
a8bb64ffb1
commit
3f46395bd2
@ -58,4 +58,13 @@ export function removeFromOngoingQueue(id: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export function nukeEntireQueue() {
|
||||
update(() => {
|
||||
return {};
|
||||
});
|
||||
updateOngoing(() => {
|
||||
return {};
|
||||
});
|
||||
}
|
||||
|
||||
export { queue, ongoingQueue };
|
||||
|
Loading…
x
Reference in New Issue
Block a user