summaryrefslogtreecommitdiff
path: root/web/share/js/kvm
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2025-01-11 22:20:56 +0200
committerMaxim Devaev <[email protected]>2025-01-11 22:20:56 +0200
commit965e649f8cd024dd054ed33dd2ba0f98b508c8ae (patch)
tree7da9bf6e7f84efbc15e0bc7d4252fb4d4138deb0 /web/share/js/kvm
parentb49107ff6cf8a5ea489600f22a1cf842873ebfaf (diff)
switch update notification
Diffstat (limited to 'web/share/js/kvm')
-rw-r--r--web/share/js/kvm/switch.js4
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));