Hide/disable diagnostics log button when diag is off
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user