mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 07:44:11 +00:00
Add Workspace.SearchBox.Toggle command (#1814)
* Add Workspace.SearchBox.Toggle command * Update locales [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
LGraphNode,
|
||||
LGraphGroup
|
||||
} from '@comfyorg/litegraph'
|
||||
import { useSearchBoxStore } from '@/stores/workspace/searchBoxStore'
|
||||
|
||||
export function useCoreCommands(): ComfyCommand[] {
|
||||
const getTracker = () => useWorkflowStore()?.activeWorkflow?.changeTracker
|
||||
@@ -477,6 +478,15 @@ export function useCoreCommands(): ComfyCommand[] {
|
||||
function: () => {
|
||||
window.open('https://www.comfy.org/discord', '_blank')
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'Workspace.SearchBox.Toggle',
|
||||
icon: 'pi pi-search',
|
||||
label: 'Toggle Search Box',
|
||||
versionAdded: '1.5.7',
|
||||
function: () => {
|
||||
useSearchBoxStore().toggleVisible()
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user