mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
refactoring
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user