refactoring

This commit is contained in:
Devaev Maxim
2020-07-11 01:58:07 +03:00
parent e390914c7e
commit 01fee4992b
6 changed files with 33 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ export function WakeOnLan() {
self.setState = function(state) {
if (state) {
$("wol").classList.toggle("feature-disabled", !state.enabled);
tools.setFeatureEnabled($("wol"), state.enabled);
__target = state.target;
}
wm.switchEnabled($("wol-wakeup-button"), (state && state.enabled));