mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 23:33:43 +00:00
Merge pull request #56491 from mihir-kandoi/messages-js/setup
chore: rewrite user-facing JS messages in setup module
This commit is contained in:
@@ -236,7 +236,7 @@ frappe.ui.form.on("Company", {
|
|||||||
},
|
},
|
||||||
function (data) {
|
function (data) {
|
||||||
if (data.company_name !== frm.doc.name) {
|
if (data.company_name !== frm.doc.name) {
|
||||||
frappe.msgprint(__("Company name not same"));
|
frappe.msgprint(__("Company name does not match"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ frappe.ui.form.on("Department", {
|
|||||||
},
|
},
|
||||||
validate: function (frm) {
|
validate: function (frm) {
|
||||||
if (frm.doc.name == "All Departments") {
|
if (frm.doc.name == "All Departments") {
|
||||||
frappe.throw(__("You cannot edit root node."));
|
frappe.throw(__("You cannot edit the root node."));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user