mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Catch service error for security settings
This commit is contained in:
parent
e3686cd673
commit
2c02306b24
2 changed files with 5 additions and 2 deletions
Binary file not shown.
|
|
@ -1047,9 +1047,12 @@ class UIBinder {
|
||||||
let overlay = ui.waitMessage(document.getElementById('divSecurityOptions'));
|
let overlay = ui.waitMessage(document.getElementById('divSecurityOptions'));
|
||||||
overlay.style.borderRadius = '5px';
|
overlay.style.borderRadius = '5px';
|
||||||
getJSON('/getSecurity', (err, security) => {
|
getJSON('/getSecurity', (err, security) => {
|
||||||
console.log(security);
|
|
||||||
general.setSecurityConfig(security);
|
|
||||||
overlay.remove();
|
overlay.remove();
|
||||||
|
if (err) ui.serviceError(err);
|
||||||
|
else {
|
||||||
|
console.log(security);
|
||||||
|
general.setSecurityConfig(security);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setHomePanel() {
|
setHomePanel() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue