settings-level-expert: hide them by default (#3487)

This commit is contained in:
Adam Warner
2025-05-30 21:35:56 +01:00
committed by GitHub
8 changed files with 21 additions and 21 deletions

View File

@@ -684,7 +684,7 @@ function applyExpertSettings() {
if (localStorage.getItem("expert_settings") === "true") {
for (const element of expertSettingsNodes) element.classList.remove("d-none");
} else {
for (const element of expertSettingsNodes) element.classList.add("d-none");
for (const element of expertSettingsNodes) element.classList.toggle("d-none", true);
// If we left with an empty page (no visible boxes) after switching from
// Expert to Basic settings, redirect to admin/settings/system instead