Update low bandwidth labels

This commit is contained in:
Mashintime 2023-07-04 11:36:52 -04:00
parent fa0e7e15ac
commit a3ed906051
2 changed files with 9 additions and 9 deletions

View file

@ -344,9 +344,9 @@ window.addEventListener("DOMContentLoaded", () => {
} }
if (config.low_bandwidth_mode == "True") { if (config.low_bandwidth_mode == "True") {
document.getElementById("500HzModeSwitch").checked = true; document.getElementById("250HzModeSwitch").checked = true;
} else { } else {
document.getElementById("500HzModeSwitch").checked = false; document.getElementById("250HzModeSwitch").checked = false;
} }
if (config.high_graphics == "True") { if (config.high_graphics == "True") {
@ -1158,8 +1158,8 @@ window.addEventListener("DOMContentLoaded", () => {
}); });
// enable 500z Switch clicked // enable 500z Switch clicked
document.getElementById("500HzModeSwitch").addEventListener("click", () => { document.getElementById("250HzModeSwitch").addEventListener("click", () => {
if (document.getElementById("500HzModeSwitch").checked == true) { if (document.getElementById("250HzModeSwitch").checked == true) {
config.low_bandwidth_mode = "True"; config.low_bandwidth_mode = "True";
} else { } else {
config.low_bandwidth_mode = "False"; config.low_bandwidth_mode = "False";
@ -1484,7 +1484,7 @@ window.addEventListener("DOMContentLoaded", () => {
var enable_fft = "False"; var enable_fft = "False";
} }
if (document.getElementById("500HzModeSwitch").checked == true) { if (document.getElementById("250HzModeSwitch").checked == true) {
var low_bandwidth_mode = "True"; var low_bandwidth_mode = "True";
} else { } else {
var low_bandwidth_mode = "False"; var low_bandwidth_mode = "False";

View file

@ -3671,17 +3671,17 @@
</div> </div>
<div class="input-group input-group-sm mb-1"> <div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50" <label class="input-group-text w-50"
>Enable 563Hz only mode</label >Enable 250Hz only mode</label
> >
<label class="input-group-text w-50"> <label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline"> <div class="form-check form-switch form-check-inline">
<input <input
class="form-check-input" class="form-check-input"
type="checkbox" type="checkbox"
id="500HzModeSwitch" id="250HzModeSwitch"
/> />
<label class="form-check-label" for="500HzModeSwitch" <label class="form-check-label" for="250HzModeSwitch"
>563Hz</label >250Hz</label
> >
</div> </div>
</label> </label>