From fd5e3bbeba81f1462000c086e42e9736e179accf Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Sun, 29 Sep 2024 10:55:17 -0400 Subject: [PATCH] Only display "icon for help" message if there actually is an ID that would display help --- www/js/fpp.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/js/fpp.js b/www/js/fpp.js index 83136a91d..cfca106f0 100644 --- a/www/js/fpp.js +++ b/www/js/fpp.js @@ -4575,6 +4575,18 @@ function updateWarnings (jsonStatus) { } }); } + var txt = 'Abnormal Conditions - May cause poor performance or other issues'; + var hasID = false; + for (var i = 0; i < currentWarnings.length; i++) { + var warningID = currentWarnings[i]['id']; + if (warningID != 0) { + hasID = true; + } + } + if (hasID) { + txt += ' (Click link icon for help)'; + } + txt += '