diff options
author | Devaev Maxim <[email protected]> | 2020-07-21 15:02:57 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-21 15:27:14 +0300 |
commit | 360ff0090346fe2ead3e42d7bc39391325f8a2d3 (patch) | |
tree | 27de4c274acfe1abcc3df6b94d123a2cbb0fd03f /web/share/js/kvm/session.js | |
parent | b5ba546481dffa687395df725fb4dd57c7dc8338 (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r-- | web/share/js/kvm/session.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 72b68151..06ffcd95 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -92,11 +92,11 @@ export function Session() { let undervoltage = (flags.undervoltage.now || flags.undervoltage.past); let freq_capped = (flags.freq_capped.now || flags.freq_capped.past); - tools.setHiddenVisible($("hw-health-dropdown"), (undervoltage || freq_capped)); + tools.hiddenSetVisible($("hw-health-dropdown"), (undervoltage || freq_capped)); $("hw-health-undervoltage-led").className = (undervoltage ? (flags.undervoltage.now ? "led-red" : "led-yellow") : "hidden"); $("hw-health-overheating-led").className = (freq_capped ? (flags.freq_capped.now ? "led-red" : "led-yellow") : "hidden"); - tools.setHiddenVisible($("hw-health-message-undervoltage"), undervoltage); - tools.setHiddenVisible($("hw-health-message-overheating"), freq_capped); + tools.hiddenSetVisible($("hw-health-message-undervoltage"), undervoltage); + tools.hiddenSetVisible($("hw-health-message-overheating"), freq_capped); } }; |