mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
settings-level-expert: hide them by default (#3487)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user