Allow enabling/disabling mesh features.

This commit is contained in:
Mashintime 2023-07-02 11:33:53 -04:00
parent 3317b07c41
commit 139ea334fc
3 changed files with 16 additions and 1 deletions

View file

@ -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)) {

View file

@ -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();

View file

@ -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"