Skip to content

Commit

Permalink
Only display "icon for help" message if there actually is an ID that …
Browse files Browse the repository at this point in the history
…would display help
  • Loading branch information
dkulp committed Sep 29, 2024
1 parent 9375cca commit fd5e3bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions www/js/fpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4575,6 +4575,18 @@ function updateWarnings (jsonStatus) {
}
});
}
var txt = '<b>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 += '</b><br/><ul style="list-style-type: none;">';

for (var i = 0; i < currentWarnings.length; i++) {
var warningID = currentWarnings[i]['id'];
Expand Down

0 comments on commit fd5e3bb

Please sign in to comment.