소스 검색

fix: use debounced frappe.call on domain selection

Also removed  tag from domain and service labels in email account doctype

(cherry picked from commit 141693a75b)
version-14
phot0n 2 년 전
committed by Mergify
부모
커밋
372b10837d
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. +3
    -2
      frappe/email/doctype/email_account/email_account.js
  2. +4
    -4
      frappe/email/doctype/email_account/email_account.json

+ 3
- 2
frappe/email/doctype/email_account/email_account.js 파일 보기

@@ -210,10 +210,11 @@ frappe.ui.form.on("Email Account", {
oauth_access(frm);
},

domain: function (frm) {
domain: frappe.utils.debounce((frm) => {
if (frm.doc.domain) {
frappe.call({
method: "get_domain_values",
doc: frm.doc,
args: {
domain: frm.doc.domain,
},
@@ -226,7 +227,7 @@ frappe.ui.form.on("Email Account", {
},
});
}
},
}),

email_sync_option: function (frm) {
// confirm if the ALL sync option is selected


+ 4
- 4
frappe/email/doctype/email_account/email_account.json 파일 보기

@@ -145,7 +145,7 @@
"hide_seconds": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Domain (optional)",
"label": "Domain",
"options": "Email Domain"
},
{
@@ -154,7 +154,7 @@
"fieldtype": "Select",
"hide_days": 1,
"hide_seconds": 1,
"label": "Service (optional)",
"label": "Service",
"options": "\nGMail\nSendgrid\nSparkPost\nYahoo Mail\nOutlook.com\nYandex.Mail"
},
{
@@ -615,7 +615,7 @@
"icon": "fa fa-inbox",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-08-16 13:05:45.445572",
"modified": "2022-08-23 00:31:05.305462",
"modified_by": "Administrator",
"module": "Email",
"name": "Email Account",
@@ -639,4 +639,4 @@
"sort_order": "DESC",
"states": [],
"track_changes": 1
}
}

불러오는 중...
취소
저장