switch update notification

This commit is contained in:
Maxim Devaev
2025-01-11 22:20:56 +02:00
parent b49107ff6c
commit 965e649f8c
4 changed files with 25 additions and 0 deletions

View File

@@ -406,6 +406,10 @@ export function Switch() {
}
$("switch-chain").innerHTML = content;
if (model.units.length > 0) {
tools.hidden.setVisible($("switch-message-update"), (model.firmware.version > model.units[0].firmware.version));
}
for (let unit = 0; unit < model.units.length; ++unit) {
tools.el.setOnClick($(`__switch-beacon-button-u${unit}`), tools.partial(__switchUplinkBeacon, unit));
tools.el.setOnClick($(`__switch-beacon-button-d${unit}`), tools.partial(__switchDownlinkBeacon, unit));