diff --git a/components/main/settingsPageComponents/GeneralSettings.tsx b/components/main/settingsPageComponents/GeneralSettings.tsx index 881f959..8e6a1b2 100644 --- a/components/main/settingsPageComponents/GeneralSettings.tsx +++ b/components/main/settingsPageComponents/GeneralSettings.tsx @@ -201,17 +201,17 @@ const GeneralSettings: React.FC = () => { className="bg-littwin-blue text-white px-2 py-1 rounded text-xs w-full md:w-auto" onClick={() => handleGeneralSubmit( - { - name, - ip, - subnet, - gateway, - }, { name: systemSettings.deviceName ?? "", ip: systemSettings.ip ?? "", subnet: systemSettings.subnet ?? "", gateway: systemSettings.gateway ?? "", + }, + { + name, + ip, + subnet, + gateway, } ) } diff --git a/components/main/settingsPageComponents/handlers/handleGeneralSubmit.ts b/components/main/settingsPageComponents/handlers/handleGeneralSubmit.ts index 607e9b9..ff6c147 100644 --- a/components/main/settingsPageComponents/handlers/handleGeneralSubmit.ts +++ b/components/main/settingsPageComponents/handlers/handleGeneralSubmit.ts @@ -46,11 +46,14 @@ const handleGeneralSubmit = ( url += `&${key}=${encodeURIComponent(value)}`; }); - console.log(url); + console.log("URL für Allgemeine Einstellungen: ", url); + console.log("Original:", original); + console.log("Current:", current); + console.log("Changes:", changes); fetch(url, { method: "GET" }) .then(() => { - alert("Netzwerkdaten erfolgreich gesendet!"); + alert("Daten erfolgreich gesendet!"); if (networkChanges) { alert( "Ein Neustart ist erforderlich, um die Netzwerkeinstellungen zu übernehmen." diff --git a/config/webVersion.ts b/config/webVersion.ts index 56c0564..a9315bd 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.277"; +const webVersion = "1.6.278"; export default webVersion;