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:
Will Miao
2026-01-15 09:45:03 +08:00
parent 0c67ff85ee
commit 10c0668b02
2 changed files with 2 additions and 0 deletions

View File

@@ -289,6 +289,7 @@ export class SearchManager {
pageState.searchOptions.tags = options.tags || false;
pageState.searchOptions.loraName = options.loraName || false;
pageState.searchOptions.loraModel = options.loraModel || false;
pageState.searchOptions.prompt = options.prompt || false;
} else if (this.currentPage === 'loras' || this.currentPage === 'checkpoints' || this.currentPage === 'embeddings') {
// Update only the relevant fields in searchOptions instead of replacing the whole object
pageState.searchOptions.filename = options.filename || false;

View File

@@ -103,6 +103,7 @@ export const state = {
tags: true,
loraName: true,
loraModel: true,
prompt: true,
recursive: getStorageItem('recipes_recursiveSearch', true),
},
filters: {