diff --git a/static/hub.js b/static/hub.js index 55bcde9..0e1642e 100644 --- a/static/hub.js +++ b/static/hub.js @@ -452,6 +452,14 @@ "" ); } + const rows = []; + if (s.sim.machines > 0) rows.push(modeRow("sim", "sim", s.sim)); + if (s.live.machines > 0) rows.push(modeRow("live", "live", s.live)); + if (!rows.length) { + box.hidden = true; + box.innerHTML = ""; + return; + } box.hidden = false; box.innerHTML = '