fix(unrelated): make create doctype using form builder default button
This commit is contained in:
parent
42ead7dc91
commit
4f459f7146
1 changed files with 5 additions and 5 deletions
|
|
@ -6,16 +6,16 @@ frappe.listview_settings["DocType"] = {
|
|||
|
||||
setup_select_primary_button: function (me) {
|
||||
let actions = [
|
||||
{
|
||||
label: __("Add DocType"),
|
||||
description: __("Create a new DocType"),
|
||||
action: () => frappe.new_doc("DocType"),
|
||||
},
|
||||
{
|
||||
label: __("Add DocType (Form Builder)"),
|
||||
description: __("Use the form builder to create a new DocType"),
|
||||
action: () => frappe.set_route("form-builder", "new-doctype"),
|
||||
},
|
||||
{
|
||||
label: __("Add DocType"),
|
||||
description: __("Create a new DocType"),
|
||||
action: () => frappe.new_doc("DocType"),
|
||||
},
|
||||
];
|
||||
|
||||
frappe.utils.add_select_group_button(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue