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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/kvm/atx.js b/web/share/js/kvm/atx.js
index a7c6bbed..fae7fc9f 100644
--- a/web/share/js/kvm/atx.js
+++ b/web/share/js/kvm/atx.js
@@ -51,9 +51,9 @@ export function Atx() {
$("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray");
$("atx-hdd-led").className = ((state && state.leds.hdd) ? "led-red" : "led-gray");
- wm.switchDisabled($("atx-power-button"), (!state || state.busy));
- wm.switchDisabled($("atx-power-button-long"), (!state || state.busy));
- wm.switchDisabled($("atx-reset-button"), (!state || state.busy));
+ wm.switchEnabled($("atx-power-button"), (state && !state.busy));
+ wm.switchEnabled($("atx-power-button-long"), (state && !state.busy));
+ wm.switchEnabled($("atx-reset-button"), (state && !state.busy));
};
var __clickButton = function(button, confirm_msg) {