From 3bfa2283cde35195fe18ef8921e1c78da4d891d2 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js index a447db09a2..44cde37e57 100644 --- a/scripts/pi-hole/js/settings.js +++ b/scripts/pi-hole/js/settings.js @@ -39,9 +39,13 @@ 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( - `  ` + `  ` ); }