From 3ae6f3f881b4a116f962c919af8606ba32d905db Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 25 Dec 2020 05:09:52 +0300 Subject: refactoring --- web/share/js/kvm/wol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share/js/kvm/wol.js') diff --git a/web/share/js/kvm/wol.js b/web/share/js/kvm/wol.js index 1492d89d..000f842a 100644 --- a/web/share/js/kvm/wol.js +++ b/web/share/js/kvm/wol.js @@ -45,7 +45,7 @@ export function WakeOnLan() { tools.featureSetEnabled($("wol"), state.enabled); __target = state.target; } - wm.switchEnabled($("wol-wakeup-button"), (state && state.enabled)); + wm.setElementEnabled($("wol-wakeup-button"), (state && state.enabled)); }; var __clickWakeupButton = function() { -- cgit v1.2.3