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:
Alex "mcmonkey" Goodwin
2024-10-07 11:50:45 -07:00
committed by GitHub
parent 99c948f578
commit ff1ca268a4
2 changed files with 18 additions and 1 deletions

View File

@@ -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) => {