mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Allow enabling/disabling mesh features.
This commit is contained in:
parent
3317b07c41
commit
139ea334fc
3 changed files with 16 additions and 1 deletions
|
@ -101,7 +101,8 @@ const configDefaultSettings =
|
|||
"enable_auto_retry" : "False", \
|
||||
"tx_delay" : 0, \
|
||||
"auto_start": 0, \
|
||||
"enable_sys_notification": 1 \
|
||||
"enable_sys_notification": 1, \
|
||||
"enable_mesh_features": 0 \
|
||||
}';
|
||||
|
||||
if (!fs.existsSync(configPath)) {
|
||||
|
|
|
@ -1760,7 +1760,17 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
});
|
||||
|
||||
autostart_rigctld();
|
||||
|
||||
//Enable mesh features by setting to 1, should be changed for releases
|
||||
config.enable_mesh_features =1;
|
||||
//config.enable_mesh_features =0;
|
||||
|
||||
if (! config.enable_mesh_features == 1) {
|
||||
document.getElementById("liMeshTable").style.visibility = "hidden";
|
||||
document.getElementById("liMeshTable").style.display = "none";
|
||||
}
|
||||
});
|
||||
//End of domcontentloaded
|
||||
|
||||
function resetSortIcon() {
|
||||
document.getElementById("hslSort").remove();
|
||||
|
|
|
@ -215,14 +215,18 @@
|
|||
Settings
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button class="dropdown-item" id="tncLog" type="button">
|
||||
<i class="bi bi-card-text me-2"></i>
|
||||
TNC Live Logs
|
||||
</button>
|
||||
</li>
|
||||
<li id="liMeshTable">
|
||||
<button class="dropdown-item" id="meshtable" type="button">
|
||||
<i class="bi bi-rocket-takeoff me-2"></i>
|
||||
Mesh Table Prototype
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
class="dropdown-item"
|
||||
|
|
Loading…
Reference in a new issue