mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
feat: add Comfy.Queue.ToggleOverlay command for job history panel (#7805)
## Summary Move queue overlay expanded state from local ref to useQueueUIStore, enabling command-based control similar to minimap toggle. fix #7803 ## Screenshots https://github.com/user-attachments/assets/d79927ea-0b7e-44c5-bfaf-2f50dcc012ab ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7805-feat-add-Comfy-Queue-ToggleOverlay-command-for-job-history-panel-2d96d73d365081018916ef490d57ce92) by [Unito](https://www.unito.io) --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -618,3 +618,13 @@ export const useQueueSettingsStore = defineStore('queueSettingsStore', {
|
||||
batchCount: 1
|
||||
})
|
||||
})
|
||||
|
||||
export const useQueueUIStore = defineStore('queueUIStore', () => {
|
||||
const isOverlayExpanded = ref(false)
|
||||
|
||||
function toggleOverlay() {
|
||||
isOverlayExpanded.value = !isOverlayExpanded.value
|
||||
}
|
||||
|
||||
return { isOverlayExpanded, toggleOverlay }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user