1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:15:55 +00:00

show alert if recent_log_events > 0

This commit is contained in:
Andrew Dolgov
2018-12-10 10:53:11 +03:00
parent 51de0ce807
commit 7e5c999146
8 changed files with 27 additions and 4 deletions

View File

@@ -272,6 +272,14 @@ define(["dojo/_base/declare"], function (declare) {
}
}
if (k == "recent_log_events") {
const alert = $$(".log-alert")[0];
if (alert) {
v > 0 ? alert.show() : alert.hide();
}
}
if (k == "daemon_stamp_ok" && v != 1) {
Notify.error("<span onclick=\"App.explainError(3)\">Update daemon is not updating feeds.</span>", true);
return;