Explorar o código

Gate firmware update tab behind ?beta=true

copilot-swe-agent[bot] hai 3 meses
pai
achega
d9dab96e33
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      docs/index.html

+ 6 - 0
docs/index.html

@@ -397,6 +397,12 @@ const $ = s=>document.querySelector(s);
 // -- only the UI is hidden, so adding ?debug=true after an unattended incident still shows the history.
 const DEBUG_UI = new URLSearchParams(location.search).get("debug")==="true";
 if(!DEBUG_UI) for(const el of document.querySelectorAll(".debugonly")) el.style.display="none";
+// Firmware-update tab gate: only visible with ?beta=true in the URL.
+const BETA_UI = new URLSearchParams(location.search).get("beta")==="true";
+if(!BETA_UI){
+  document.querySelector('#mainTabs .slot-tab[data-tab="tabUpdate"]').style.display="none";
+  $("#updAvail").style.display="none";
+}
 function log(m){ const l=$("#log"); l.textContent=(new Date().toLocaleTimeString()+"  "+m+"\n"+l.textContent).slice(0,2000); }
 
 // ---- Loop-state trail (persistent) ----