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

View File

@@ -175,7 +175,7 @@
<i class="fa-fw menu-icon fa-solid fa-address-book"></i> <span>Local DNS Records</span>
</a>
</li>
<li class="settings-level-expert<? if scriptname == 'settings/all' then ?> active<? end ?>">
<li class="settings-level-expert d-none<? if scriptname == 'settings/all' then ?> active<? end ?>">
<a href="<?=webhome?>settings/all">
<i class="fa-fw menu-icon fa-solid fa-pen-to-square"></i> <span>All settings</span>
</a>