refacto: servercomponent and first route for config

This commit is contained in:
Julien Froidefond
2025-02-14 12:51:03 +01:00
parent e3ad1690c5
commit bd652fc1ff
7 changed files with 62 additions and 137 deletions

View File

@@ -146,6 +146,12 @@ export default function SettingsPage() {
};
komgaConfigService.setConfig(komgaConfig, true);
fetch("/api/komga/config", {
method: "POST",
body: JSON.stringify(komgaConfig),
});
setConfig(newConfig);
// Émettre un événement pour notifier les autres composants