summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/atx.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-03-18 02:00:58 +0300
committerDevaev Maxim <[email protected]>2019-03-18 03:32:14 +0300
commitd049400a97d7c0d785298f23c34bd4e3ed612f36 (patch)
treeaaaa299770c0be464bcbd9728e60903202ca1e2f /web/share/js/kvm/atx.js
parentd1a6d79af5043ba8c0b2e085e0ca32922d8b23e1 (diff)
optional msd and atx
Diffstat (limited to 'web/share/js/kvm/atx.js')
-rw-r--r--web/share/js/kvm/atx.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/share/js/kvm/atx.js b/web/share/js/kvm/atx.js
index a81abe45..3c3b5ead 100644
--- a/web/share/js/kvm/atx.js
+++ b/web/share/js/kvm/atx.js
@@ -37,6 +37,14 @@ function Atx() {
/************************************************************************/
self.setState = function(state) {
+ if (state) {
+ if (state.enabled) {
+ $("atx-dropdown").classList.remove("feature-disabled");
+ } else {
+ $("atx-dropdown").classList.add("feature-disabled");
+ }
+ }
+
$("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray");
$("atx-hdd-led").className = ((state && state.leds.hdd) ? "led-red" : "led-gray");