瀏覽代碼

Merge pull request #16797 from hrwX/disable_change_log

version-14
Suraj Shetty 3 年之前
committed by GitHub
父節點
當前提交
b92c911646
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 2 個文件被更改,包括 11 次插入3 次删除
  1. +9
    -2
      frappe/core/doctype/system_settings/system_settings.json
  2. +2
    -1
      frappe/public/js/frappe/desk.js

+ 9
- 2
frappe/core/doctype/system_settings/system_settings.json 查看文件

@@ -70,7 +70,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": [
{
@@ -488,12 +489,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-05-02 18:53:35.218721",
"modified": "2022-05-09 18:53:35.218721",
"modified_by": "Administrator",
"module": "Core",
"name": "System Settings",


+ 2
- 1
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;
}



Loading…
取消
儲存