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

@@ -45,7 +45,7 @@ export function Atx() {
self.setState = function(state) {
if (state) {
$("atx-dropdown").classList.toggle("feature-disabled", !state.enabled);
tools.setFeatureEnabled($("atx-dropdown"), state.enabled);
}
$("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray");