diff --git a/web/src/App.tsx b/web/src/App.tsx
index 1ec19b1..f20e48e 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -57,7 +57,14 @@ export default function App() {
{view === "chat" && }
{view === "dashboard" && }
- {view === "settings" && }
+ {view === "settings" && (
+ {
+ setAssistantName(settings.assistant_name);
+ document.title = settings.assistant_name;
+ }}
+ />
+ )}
);
}
diff --git a/web/src/components/Settings.tsx b/web/src/components/Settings.tsx
index c2fe833..ab68b9c 100644
--- a/web/src/components/Settings.tsx
+++ b/web/src/components/Settings.tsx
@@ -4,7 +4,9 @@ import { apiFetch } from "../api";
type SettingsData = { assistant_name: string; company_name: string; contact_email: string };
-export default function Settings() {
+type SettingsProps = { onSaved?: (settings: SettingsData) => void };
+
+export default function Settings({ onSaved }: SettingsProps) {
const [settings, setSettings] = useState(null);
const [error, setError] = useState(null);
const [saving, setSaving] = useState(false);
@@ -45,7 +47,9 @@ export default function Settings() {
setError("Speichern fehlgeschlagen");
return;
}
- setSettings(await response.json());
+ const updated = await response.json();
+ setSettings(updated);
+ onSaved?.(updated);
setSaved(true);
} catch {
setError("Speichern fehlgeschlagen");