chore: remove unseen error message alert

Unnecessary and not useful for most users.

We should instead have dashboard for system status.
This commit is contained in:
Ankush Menat 2023-07-12 17:01:11 +05:30
parent fdf5350b77
commit 2045d48fc8

View file

@ -151,27 +151,6 @@ frappe.Application = class Application {
// REDESIGN-TODO: Fix preview popovers
this.link_preview = new frappe.ui.LinkPreview();
if (!frappe.boot.developer_mode) {
if (frappe.user.has_role("System Manager")) {
setInterval(function () {
frappe.call({
method: "frappe.core.doctype.log_settings.log_settings.has_unseen_error_log",
args: {
user: frappe.session.user,
},
callback: function (r) {
if (r.message && r.message.show_alert) {
frappe.show_alert({
indicator: "red",
message: r.message.message,
});
}
},
});
}, 600000); // check every 10 minutes
}
}
}
set_route() {