Merge pull request #21347 from resilient-tech/customize-form-actions
chore(UX): reorder customize form actions (+ one rename)
This commit is contained in:
commit
ec39a9d612
1 changed files with 6 additions and 6 deletions
|
|
@ -111,17 +111,17 @@ frappe.ui.form.on("Customize Form", {
|
||||||
);
|
);
|
||||||
|
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Reload"),
|
__("Set Permissions"),
|
||||||
function () {
|
function () {
|
||||||
frm.script_manager.trigger("doc_type");
|
frappe.set_route("permission-manager", frm.doc.doc_type);
|
||||||
},
|
},
|
||||||
__("Actions")
|
__("Actions")
|
||||||
);
|
);
|
||||||
|
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Reset to defaults"),
|
__("Reload"),
|
||||||
function () {
|
function () {
|
||||||
frappe.customize_form.confirm(__("Remove all customizations?"), frm);
|
frm.script_manager.trigger("doc_type");
|
||||||
},
|
},
|
||||||
__("Actions")
|
__("Actions")
|
||||||
);
|
);
|
||||||
|
|
@ -135,9 +135,9 @@ frappe.ui.form.on("Customize Form", {
|
||||||
);
|
);
|
||||||
|
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Set Permissions"),
|
__("Reset All Customizations"),
|
||||||
function () {
|
function () {
|
||||||
frappe.set_route("permission-manager", frm.doc.doc_type);
|
frappe.customize_form.confirm(__("Remove all customizations?"), frm);
|
||||||
},
|
},
|
||||||
__("Actions")
|
__("Actions")
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue