Merge pull request #21347 from resilient-tech/customize-form-actions

chore(UX): reorder customize form actions (+ one rename)
This commit is contained in:
Shariq Ansari 2023-06-13 09:04:29 +05:30 committed by GitHub
commit ec39a9d612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,17 +111,17 @@ frappe.ui.form.on("Customize Form", {
);
frm.add_custom_button(
__("Reload"),
__("Set Permissions"),
function () {
frm.script_manager.trigger("doc_type");
frappe.set_route("permission-manager", frm.doc.doc_type);
},
__("Actions")
);
frm.add_custom_button(
__("Reset to defaults"),
__("Reload"),
function () {
frappe.customize_form.confirm(__("Remove all customizations?"), frm);
frm.script_manager.trigger("doc_type");
},
__("Actions")
);
@ -135,9 +135,9 @@ frappe.ui.form.on("Customize Form", {
);
frm.add_custom_button(
__("Set Permissions"),
__("Reset All Customizations"),
function () {
frappe.set_route("permission-manager", frm.doc.doc_type);
frappe.customize_form.confirm(__("Remove all customizations?"), frm);
},
__("Actions")
);