Remove WiFi restart buttons
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user