From d049400a97d7c0d785298f23c34bd4e3ed612f36 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 18 Mar 2019 02:00:58 +0300 Subject: optional msd and atx --- web/share/js/kvm/atx.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/share/js/kvm/atx.js') 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"); -- cgit v1.2.3