From 947bb88a13efb4a923d9f29b77535a6144d68716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Tue, 4 Jun 2024 22:41:21 +0200 Subject: [PATCH] Base expert icon on expert class no FTL advanced flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/settings.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js index a447db09a2..444af21243 100644 --- a/scripts/pi-hole/js/settings.js +++ b/scripts/pi-hole/js/settings.js @@ -39,9 +39,12 @@ function setConfigValues(topic, key, value) { var escapedKey = key.replaceAll(".", "\\."); var envTitle = $(`[data-configkeys~='${key}']`); - if (value.flags.advanced && envTitle.find(".advanced-warning").length === 0) { + if ( + envTitle.parents().parents().hasClass("settings-level-expert") && + envTitle.find(".expert-warning").length === 0 + ) { envTitle.append( - `  ` + `  ` ); }