Remove WiFi restart buttons

This commit is contained in:
seo
2026-06-07 06:16:41 +09:00
parent ff6002433e
commit 50494844b0
3 changed files with 3 additions and 31 deletions
-20
View File
@@ -1041,23 +1041,6 @@
}
}
async function wifiAction(button) {
try {
button.disabled = true;
notice('Applying WiFi command...', 'info');
render(await api('wifi', {
unit: button.dataset.wifiUnit,
verb: button.dataset.wifiAction,
}));
notice('WiFi command completed', 'success');
} catch (e) {
console.error(e);
notice(e.message || 'wifi command failed', 'error');
} finally {
button.disabled = false;
}
}
if (els.fanSlider && els.fanSliderValue) {
els.fanSlider.addEventListener('input', () => {
markFanDirty();
@@ -1078,9 +1061,6 @@
fanApply(input.value, pwm, true);
});
});
document.querySelectorAll('[data-wifi-action]').forEach(button => {
button.addEventListener('click', () => wifiAction(button));
});
els.dmesgToggle?.addEventListener('click', () => {
setDmesgOpen(!state.dmesgOpen);
});