mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added retry attempt settings
This commit is contained in:
parent
b801a369f3
commit
c5668f0110
|
@ -272,6 +272,15 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
document.getElementById("shared_folder_path").value =
|
||||
config.shared_folder_path;
|
||||
|
||||
if (config.enable_auto_retry == "True") {
|
||||
document.getElementById("enable_auto_retry").checked = true;
|
||||
} else {
|
||||
document.getElementById("enable_auto_retry").checked = false;
|
||||
}
|
||||
|
||||
document.getElementById("max_retry_attempts").value = config.max_retry_attempts;
|
||||
|
||||
|
||||
if (config.enable_request_profile == "True") {
|
||||
document.getElementById("enable_request_profile").checked = true;
|
||||
} else {
|
||||
|
@ -985,6 +994,30 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
bcn.disabled = false;
|
||||
});
|
||||
|
||||
|
||||
// enable_auto_retry Switch clicked
|
||||
document.getElementById("enable_auto_retry").addEventListener("click", () => {
|
||||
console.log(document.getElementById("enable_auto_retry").checked);
|
||||
if (document.getElementById("enable_auto_retry").checked == true) {
|
||||
config.enable_auto_retry = "True";
|
||||
} else {
|
||||
config.enable_auto_retry = "False";
|
||||
}
|
||||
//fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||
FD.saveConfig(config, configPath);
|
||||
});
|
||||
|
||||
// max_retry_attempts Switch clicked
|
||||
document.getElementById("max_retry_attempts").addEventListener("change", () => {
|
||||
console.log(document.getElementById("max_retry_attempts").value);
|
||||
config.max_retry_attempts = document.getElementById("max_retry_attempts").value;
|
||||
|
||||
//fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||
FD.saveConfig(config, configPath);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// sendscatter Switch clicked
|
||||
document.getElementById("scatterSwitch").addEventListener("click", () => {
|
||||
console.log(document.getElementById("scatterSwitch").checked);
|
||||
|
|
|
@ -2916,6 +2916,11 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
<label class="input-group-text w-50"
|
||||
>Shared folder path</label
|
||||
|
@ -2926,7 +2931,48 @@
|
|||
id="shared_folder_path"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
<label class="input-group-text w-50"
|
||||
>Enable auto retry on Beacon or Ping
|
||||
</label>
|
||||
|
||||
<label class="input-group-text w-50">
|
||||
|
||||
<div class="form-check form-switch form-check-inline">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
id="enable_auto_retry"
|
||||
/>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
<span class="input-group-text w-50">message retry attempts</span>
|
||||
<select
|
||||
class="form-select form-select-sm w-50"
|
||||
id="max_retry_attempts"
|
||||
>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--Rigctl tab contents-->
|
||||
<div
|
||||
class="tab-pane"
|
||||
|
|
Loading…
Reference in a new issue