Manage searchbox imp setting in Vue app (#282)

* Manage searchbox setting in vue

* nit
This commit is contained in:
Chenlei Hu
2024-08-03 10:31:10 -04:00
committed by GitHub
parent e14d84526a
commit d02b074fa3
3 changed files with 6 additions and 10 deletions

View File

@@ -425,14 +425,7 @@ export class ComfyUI {
name: 'Node Search box implementation',
type: 'combo',
options: ['default', 'litegraph (legacy)'],
defaultValue: 'default',
onChange: (value?: string) => {
if (!app.canvas) return
value = value || 'default'
const useLitegraphSearch = value === 'litegraph (legacy)'
app.canvas.allow_searchbox = useLitegraphSearch
}
defaultValue: 'default'
})
const fileInput = $el('input', {