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:
parent
fdf5350b77
commit
2045d48fc8
1 changed files with 0 additions and 21 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue