mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 00:34:09 +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:
14
src/stores/workspace/searchBoxStore.ts
Normal file
14
src/stores/workspace/searchBoxStore.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useSearchBoxStore = defineStore('searchBox', () => {
|
||||
const visible = ref(false)
|
||||
function toggleVisible() {
|
||||
visible.value = !visible.value
|
||||
}
|
||||
|
||||
return {
|
||||
visible,
|
||||
toggleVisible
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user