From 9585aedbb9fae8218d80eac8a786556b1a588776 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 a447db09a..444af2124 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( - `  ` + `  ` ); }