feature: добавил поле для ввода пароля входа в сеть ЦЗС

This commit is contained in:
2025-08-13 11:16:14 +03:00
parent beca00ff70
commit 7cd096a269
7 changed files with 88 additions and 11 deletions

View File

@@ -63,6 +63,22 @@
}
this.submitStatus.firmwareUpgradeOta = false
},
async settingsPerformSetCesPassword() {
if (this.submitStatus.cesPassword) { return }
this.submitStatus.cesPassword = true
try {
await fetch('/api/set/cesPassword', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({'password': this.cesPasswordValue})
})
} catch (e) {
console.log("failed to perform set CES password: ", e)
}
this.submitStatus.cesPassword = false
},
{% endif %}
doModemReboot() {