Merge pull request #1357 from JeLuF/savesettings

Fix saving of network settings
This commit is contained in:
cmdr2 2023-06-26 15:22:35 +05:30 committed by GitHub
commit 569431dc72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -649,6 +649,7 @@ async function getSystemInfo() {
} }
saveSettingsBtn.addEventListener("click", function() { saveSettingsBtn.addEventListener("click", function() {
console.log("listenPortField.value", listenPortField.value)
if (listenPortField.value == "") { if (listenPortField.value == "") {
alert("The network port field must not be empty.") alert("The network port field must not be empty.")
return return
@ -664,7 +665,7 @@ saveSettingsBtn.addEventListener("click", function() {
update_branch: updateBranch, update_branch: updateBranch,
} }
Array.from(parametersTable.children).forEach((parameterRow) => { document.querySelectorAll('#system-settings [data-setting-id]').forEach((parameterRow) => {
if (parameterRow.dataset.saveInAppConfig === "true") { if (parameterRow.dataset.saveInAppConfig === "true") {
const parameterElement = const parameterElement =
document.getElementById(parameterRow.dataset.settingId) || document.getElementById(parameterRow.dataset.settingId) ||