mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
Removing the triangle icon
The message count was moved to the "hamburger" menu icon. Using more discreet color for the circle. Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -366,18 +366,18 @@ function checkMessages() {
|
||||
: false;
|
||||
$.getJSON("api_db.php?status" + (ignoreNonfatal ? "&ignore=DNSMASQ_WARN" : ""), function (data) {
|
||||
if ("message_count" in data && data.message_count > 0) {
|
||||
var more = '\nAccess "Tools/Pi-hole diganosis" for further details.';
|
||||
var title =
|
||||
data.message_count > 1
|
||||
? "There are " + data.message_count + " warnings. Click for further details."
|
||||
: "There is one warning. Click for further details.";
|
||||
? "There are " + data.message_count + " warnings." + more
|
||||
: "There is one warning." + more;
|
||||
|
||||
$("#pihole-diagnosis").prop("title", title);
|
||||
$("#pihole-diagnosis-count").text(data.message_count);
|
||||
$("#pihole-diagnosis").removeClass("hidden");
|
||||
$("#top-warning-count").prop("title", title);
|
||||
$("#top-warning-count").removeClass("hidden");
|
||||
$(".warning-count").text(data.message_count);
|
||||
$(".warning-count").removeClass("hidden");
|
||||
} else {
|
||||
$("#pihole-diagnosis").addClass("hidden");
|
||||
$("#top-warning-count").addClass("hidden");
|
||||
$(".warning-count").addClass("hidden");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user