diff options
Diffstat (limited to 'web/share/js/kvm/switch.js')
-rw-r--r-- | web/share/js/kvm/switch.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/kvm/switch.js b/web/share/js/kvm/switch.js index 112d8f15..bd33a781 100644 --- a/web/share/js/kvm/switch.js +++ b/web/share/js/kvm/switch.js @@ -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)); |