Catch service error for security settings

This commit is contained in:
Robert Strouse 2023-07-04 09:02:35 -07:00
parent e3686cd673
commit 2c02306b24
2 changed files with 5 additions and 2 deletions

Binary file not shown.

View file

@ -1047,9 +1047,12 @@ class UIBinder {
let overlay = ui.waitMessage(document.getElementById('divSecurityOptions'));
overlay.style.borderRadius = '5px';
getJSON('/getSecurity', (err, security) => {
overlay.remove();
if (err) ui.serviceError(err);
else {
console.log(security);
general.setSecurityConfig(security);
overlay.remove();
}
});
}
setHomePanel() {