forked from extern/easydiffusion
Merge pull request #1357 from JeLuF/savesettings
Fix saving of network settings
This commit is contained in:
commit
569431dc72
@ -649,6 +649,7 @@ async function getSystemInfo() {
|
||||
}
|
||||
|
||||
saveSettingsBtn.addEventListener("click", function() {
|
||||
console.log("listenPortField.value", listenPortField.value)
|
||||
if (listenPortField.value == "") {
|
||||
alert("The network port field must not be empty.")
|
||||
return
|
||||
@ -664,7 +665,7 @@ saveSettingsBtn.addEventListener("click", function() {
|
||||
update_branch: updateBranch,
|
||||
}
|
||||
|
||||
Array.from(parametersTable.children).forEach((parameterRow) => {
|
||||
document.querySelectorAll('#system-settings [data-setting-id]').forEach((parameterRow) => {
|
||||
if (parameterRow.dataset.saveInAppConfig === "true") {
|
||||
const parameterElement =
|
||||
document.getElementById(parameterRow.dataset.settingId) ||
|
||||
|
Loading…
Reference in New Issue
Block a user