mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Update PromptCommands.svelte
feat: case-insensitive prompt search
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
let filteredPromptCommands = [];
|
let filteredPromptCommands = [];
|
||||||
|
|
||||||
$: filteredPromptCommands = $prompts
|
$: filteredPromptCommands = $prompts
|
||||||
.filter((p) => p.command.includes(prompt))
|
.filter((p) => p.command.toLowerCase().includes(prompt.toLowerCase()))
|
||||||
.sort((a, b) => a.title.localeCompare(b.title));
|
.sort((a, b) => a.title.localeCompare(b.title));
|
||||||
|
|
||||||
$: if (prompt) {
|
$: if (prompt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user