()
| 1251 | function applyMeshTabVisibility() { |
| 1252 | const visible = _meshTabVisible(); |
| 1253 | document.querySelectorAll('.mesh-nav').forEach(btn => btn.classList.toggle('hidden', !visible)); |
| 1254 | // If the tab is hidden while it's the active one, fall back to the dashboard. |
| 1255 | if (!visible && typeof currentTab !== 'undefined' && currentTab === 'mesh') showTab('dashboard'); |
| 1256 | syncMeshTabToggle(); |
| 1257 | } |
| 1258 | |
| 1259 | async function syncMeshTabFromServer(config) { |
| 1260 | try { |
| 1261 | const cfg = config || await fetchAPI('/api/config'); |
nothing calls this directly
no test coverage detected