mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-18 14:08:51 +00:00
web/ProcessingQueue: open the queue popover when new item is added
This commit is contained in:
10
web/src/lib/state/queue-visibility.ts
Normal file
10
web/src/lib/state/queue-visibility.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { get, writable } from "svelte/store";
|
||||
|
||||
export const queueVisible = writable(false);
|
||||
|
||||
export const showQueuePopover = () => {
|
||||
const visible = get(queueVisible);
|
||||
if (!visible) {
|
||||
return queueVisible.update(v => !v);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user