Hide/disable diagnostics log button when diag is off

This commit is contained in:
Aaron
2025-12-13 12:20:52 -05:00
parent 98fbe1b96e
commit 0e3b144cd7

View File

@@ -131,6 +131,8 @@ export async function initDiagUI({ elements, toast }) {
} finally { } finally {
setBusy(false); setBusy(false);
} }
if (logButton) logButton.classList.toggle("hidden", !uiEnabled);
if (!uiEnabled && modal) modal.classList.add("hidden");
}); });
debugToggle?.addEventListener("change", async () => { debugToggle?.addEventListener("change", async () => {