fix(web-ui): add model selector filter, onModelSelect callback, onClose callback, fuzzy search, fix streaming duplicates

This commit is contained in:
Mario Zechner
2026-03-15 23:40:18 +01:00
parent aac0e0c1bf
commit 83378aad7e
7 changed files with 118 additions and 23 deletions

View File

@@ -122,9 +122,12 @@ export class SettingsDialog extends LitElement {
return this;
}
static async open(tabs: SettingsTab[]) {
private onCloseCallback?: () => void;
static async open(tabs: SettingsTab[], onClose?: () => void) {
const dialog = new SettingsDialog();
dialog.tabs = tabs;
dialog.onCloseCallback = onClose;
dialog.isOpen = true;
document.body.appendChild(dialog);
}
@@ -173,6 +176,7 @@ export class SettingsDialog extends LitElement {
onClose: () => {
this.isOpen = false;
this.remove();
this.onCloseCallback?.();
},
width: "min(1000px, 90vw)",
height: "min(800px, 90vh)",