Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/browser/components/Settings/sections/ProvidersSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export function ProvidersSection() {
setConfig(cfg);
setEditingField(null);
setEditValue("");

// Notify other components about the change
window.dispatchEvent(new Event("providers-config-changed"));
} finally {
setSaving(false);
}
Expand All @@ -127,6 +130,9 @@ export function ProvidersSection() {
await window.api.providers.setProviderConfig(provider, [field], "");
const cfg = await window.api.providers.getConfig();
setConfig(cfg);

// Notify other components about the change
window.dispatchEvent(new Event("providers-config-changed"));
} finally {
setSaving(false);
}
Expand Down