mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
Model Library sidebar: allow searching metadata (#1148)
* Model Library sidebar: allow searching metadata title, description, etc * don't use vue stuff inside of vue because vue doesn't support vue very cool * remove old import * and that one
This commit is contained in:
committed by
GitHub
parent
99c948f578
commit
ff1ca268a4
@@ -83,7 +83,7 @@ const root: ComputedRef<TreeNode> = computed(() => {
|
||||
if (searchQuery.value) {
|
||||
const search = searchQuery.value.toLocaleLowerCase()
|
||||
modelList = modelList.filter((model: ComfyModelDef) => {
|
||||
return model.file_name.toLocaleLowerCase().includes(search)
|
||||
return model.searchable.includes(search)
|
||||
})
|
||||
}
|
||||
const tree: TreeNode = buildTree(modelList, (model: ComfyModelDef) => {
|
||||
|
||||
Reference in New Issue
Block a user