summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/gpio.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-25 05:09:52 +0300
committerDevaev Maxim <[email protected]>2020-12-25 05:09:52 +0300
commit3ae6f3f881b4a116f962c919af8606ba32d905db (patch)
tree74e883600db81a12706df1e741b3cfb6b8c9e74b /web/share/js/kvm/gpio.js
parentdd4c797d26bdd7107bfb748c1aced677ca083af0 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/gpio.js')
-rw-r--r--web/share/js/kvm/gpio.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/gpio.js b/web/share/js/kvm/gpio.js
index f357236b..54aff0a6 100644
--- a/web/share/js/kvm/gpio.js
+++ b/web/share/js/kvm/gpio.js
@@ -48,7 +48,7 @@ export function Gpio() {
for (let type of ["switch", "button"]) {
let el = $(`gpio-${type}-${channel}`);
if (el) {
- wm.switchEnabled(el, state.outputs[channel].online && !state.outputs[channel].busy);
+ wm.setElementEnabled(el, state.outputs[channel].online && !state.outputs[channel].busy);
}
}
let el = $(`gpio-switch-${channel}`);
@@ -62,7 +62,7 @@ export function Gpio() {
}
for (let selector of [".gpio-switch", ".gpio-button"]) {
for (let el of $$$(selector)) {
- wm.switchEnabled(el, false);
+ wm.setElementEnabled(el, false);
}
}
}