From 63e2e328c6c0a1d350b23be4fd13408d54b936a6 Mon Sep 17 00:00:00 2001 From: hrwx Date: Thu, 28 Apr 2022 13:38:36 +0100 Subject: [PATCH] feat: disable change log --- .../core/doctype/system_settings/system_settings.json | 11 +++++++++-- frappe/public/js/frappe/desk.js | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frappe/core/doctype/system_settings/system_settings.json b/frappe/core/doctype/system_settings/system_settings.json index 0c9b87e618..1247a8c0ee 100644 --- a/frappe/core/doctype/system_settings/system_settings.json +++ b/frappe/core/doctype/system_settings/system_settings.json @@ -71,7 +71,8 @@ "column_break_64", "max_auto_email_report_per_user", "system_updates_section", - "disable_system_update_notification" + "disable_system_update_notification", + "disable_change_log_notification" ], "fields": [ { @@ -497,12 +498,18 @@ "fieldname": "max_auto_email_report_per_user", "fieldtype": "Int", "label": "Max auto email report per user" + }, + { + "default": "0", + "fieldname": "disable_change_log_notification", + "fieldtype": "Check", + "label": "Disable Change Log Notification" } ], "icon": "fa fa-cog", "issingle": 1, "links": [], - "modified": "2022-04-21 09:11:35.218721", + "modified": "2022-04-28 14:31:50.330954", "modified_by": "Administrator", "module": "Core", "name": "System Settings", diff --git a/frappe/public/js/frappe/desk.js b/frappe/public/js/frappe/desk.js index 72e8010605..a8cbe020f3 100644 --- a/frappe/public/js/frappe/desk.js +++ b/frappe/public/js/frappe/desk.js @@ -511,7 +511,8 @@ frappe.Application = class Application { // "version": "12.2.0" // }]; - if (!Array.isArray(change_log) || !change_log.length || window.Cypress) { + if (!Array.isArray(change_log) || !change_log.length || + window.Cypress || cint(frappe.boot.sysdefaults.disable_change_log_notification)) { return; }