Fixed star device webapp update.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-12 12:09:35 -07:00
parent a7bbc1eb3b
commit 62e7c5108d
2 changed files with 6 additions and 1 deletions

View File

@ -1140,6 +1140,7 @@
updateDevices(); updateDevices();
if (Q('SearchInput').value == '*') { onSearchInputChanged(); } if (Q('SearchInput').value == '*') { onSearchInputChanged(); }
} }
if (currentNode) { refreshDevice(currentNode._id); }
} }
break; break;
} }

View File

@ -2499,7 +2499,11 @@
if ((webstate.loctag != null) && (webstate.loctag != oldLoctag)) { if (webstate.loctag != null) { args.locale = webstate.loctag; } else { delete args.locale; } mainUpdate(0xFFFFFFFF); } if ((webstate.loctag != null) && (webstate.loctag != oldLoctag)) { if (webstate.loctag != null) { args.locale = webstate.loctag; } else { delete args.locale; } mainUpdate(0xFFFFFFFF); }
if ((webstate.nightMode != null) && (webstate.nightMode != oldNightMode)) { nightMode = (webstate.nightMode == '1'); if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; } } if ((webstate.nightMode != null) && (webstate.nightMode != oldNightMode)) { nightMode = (webstate.nightMode == '1'); if (nightMode) { QC('body').add('night'); QS('body')['background-color'] = '#000'; } else { QC('body').remove('night'); QS('body')['background-color'] = '#d3d9d6'; } }
if ((webstate.footerBar != null) && (webstate.footerBar != oldFooterBar)) { footerBar = (webstate.footerBar == '1'); QS('container')['grid-template-rows'] = null; QS('container')['-ms-grid-rows'] = null; adjustPanels(); } if ((webstate.footerBar != null) && (webstate.footerBar != oldFooterBar)) { footerBar = (webstate.footerBar == '1'); QS('container')['grid-template-rows'] = null; QS('container')['-ms-grid-rows'] = null; adjustPanels(); }
if ((webstate.stars != null) && (webstate.stars != JSON.stringify(stars))) { stars = JSON.parse(webstate.stars); if (Q('SearchInput').value == '*') { mainUpdate(5); } else { mainUpdate(4); } } if ((webstate.stars != null) && (webstate.stars != JSON.stringify(stars))) {
stars = JSON.parse(webstate.stars);
if (Q('SearchInput').value == '*') { mainUpdate(5); } else { mainUpdate(4); }
if (currentNode) { refreshDevice(currentNode._id); }
}
} }
} catch (ex) {} } catch (ex) {}
break; break;