mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
fix: enable prompt search functionality in recipes page
- Add prompt option to recipes default searchOptions state - Update SearchManager to propagate prompt option to backend
This commit is contained in:
@@ -289,6 +289,7 @@ export class SearchManager {
|
|||||||
pageState.searchOptions.tags = options.tags || false;
|
pageState.searchOptions.tags = options.tags || false;
|
||||||
pageState.searchOptions.loraName = options.loraName || false;
|
pageState.searchOptions.loraName = options.loraName || false;
|
||||||
pageState.searchOptions.loraModel = options.loraModel || false;
|
pageState.searchOptions.loraModel = options.loraModel || false;
|
||||||
|
pageState.searchOptions.prompt = options.prompt || false;
|
||||||
} else if (this.currentPage === 'loras' || this.currentPage === 'checkpoints' || this.currentPage === 'embeddings') {
|
} else if (this.currentPage === 'loras' || this.currentPage === 'checkpoints' || this.currentPage === 'embeddings') {
|
||||||
// Update only the relevant fields in searchOptions instead of replacing the whole object
|
// Update only the relevant fields in searchOptions instead of replacing the whole object
|
||||||
pageState.searchOptions.filename = options.filename || false;
|
pageState.searchOptions.filename = options.filename || false;
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ export const state = {
|
|||||||
tags: true,
|
tags: true,
|
||||||
loraName: true,
|
loraName: true,
|
||||||
loraModel: true,
|
loraModel: true,
|
||||||
|
prompt: true,
|
||||||
recursive: getStorageItem('recipes_recursiveSearch', true),
|
recursive: getStorageItem('recipes_recursiveSearch', true),
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
Reference in New Issue
Block a user