summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/atx.js
diff options
context:
space:
mode:
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");