Fixed star device webapp update.

Ylian Saint-Hilaire committed Aug 12, 2020 at 12:09 UTC 84a379ce7122f1d941c4a3221a8f5df01f23ce10
2 files changed +6 -1
views/default-mobile.handlebars
+1
@@ -1140,6 +1140,7 @@
1140 updateDevices();
1141 if (Q('SearchInput').value == '*') { onSearchInputChanged(); }
1142 }
1143 + if (currentNode) { refreshDevice(currentNode._id); }
1144 }
1145 break;
1146 }
views/default.handlebars
+5 -1
@@ -2499,7 +2499,11 @@
2499 if ((webstate.loctag != null) && (webstate.loctag != oldLoctag)) { if (webstate.loctag != null) { args.locale = webstate.loctag; } else { delete args.locale; } mainUpdate(0xFFFFFFFF); }
2500 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'; } }
2501 if ((webstate.footerBar != null) && (webstate.footerBar != oldFooterBar)) { footerBar = (webstate.footerBar == '1'); QS('container')['grid-template-rows'] = null; QS('container')['-ms-grid-rows'] = null; adjustPanels(); }
2502 - if ((webstate.stars != null) && (webstate.stars != JSON.stringify(stars))) { stars = JSON.parse(webstate.stars); if (Q('SearchInput').value == '*') { mainUpdate(5); } else { mainUpdate(4); } }
2502 + if ((webstate.stars != null) && (webstate.stars != JSON.stringify(stars))) {
2503 + stars = JSON.parse(webstate.stars);
2504 + if (Q('SearchInput').value == '*') { mainUpdate(5); } else { mainUpdate(4); }
2505 + if (currentNode) { refreshDevice(currentNode._id); }
2506 + }
2507 }
2508 } catch (ex) {}
2509 break;