fix(dev): developer_mode could be a boolean (#26631)
This commit is contained in:
parent
7673397734
commit
c770c8e216
2 changed files with 2 additions and 2 deletions
|
|
@ -550,7 +550,7 @@ frappe.ui.form.Toolbar = class Toolbar {
|
|||
}
|
||||
|
||||
if (frappe.model.can_create("DocType")) {
|
||||
if (frappe.boot.developer_mode === 1 && !is_doctype_form) {
|
||||
if (frappe.boot.developer_mode && !is_doctype_form) {
|
||||
// edit doctype
|
||||
this.page.add_menu_item(
|
||||
__("Edit DocType"),
|
||||
|
|
|
|||
|
|
@ -1730,7 +1730,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
shortcut: "Ctrl+K",
|
||||
});
|
||||
|
||||
if (frappe.user.has_role("System Manager") && frappe.boot.developer_mode === 1) {
|
||||
if (frappe.user.has_role("System Manager") && frappe.boot.developer_mode) {
|
||||
// edit doctype
|
||||
items.push({
|
||||
label: __("Edit DocType", null, "Button in list view menu"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue