optional msd and atx

This commit is contained in:
Devaev Maxim
2019-03-18 02:00:58 +03:00
parent d1a6d79af5
commit d049400a97
10 changed files with 151 additions and 62 deletions

View File

@@ -37,6 +37,14 @@ function Atx() {
/************************************************************************/
self.setState = function(state) {
if (state) {
if (state.enabled) {
$("atx-dropdown").classList.remove("feature-disabled");
} else {
$("atx-dropdown").classList.add("feature-disabled");
}
}
$("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray");
$("atx-hdd-led").className = ((state && state.leds.hdd) ? "led-red" : "led-gray");