fix: add icon in settings dropdown

This commit is contained in:
sokumon 2026-03-11 13:28:01 +05:30
parent 9a379af012
commit 43f655bd6b
2 changed files with 10 additions and 3 deletions

View file

@ -10,6 +10,7 @@
"action",
"hidden",
"is_standard",
"icon",
"column_break_dtwu",
"condition"
],
@ -72,19 +73,25 @@
{
"fieldname": "column_break_dtwu",
"fieldtype": "Column Break"
},
{
"fieldname": "icon",
"fieldtype": "Icon",
"label": "Icon"
}
],
"istable": 1,
"links": [],
"modified": "2024-11-15 14:12:19.803995",
"modified": "2026-03-11 12:23:02.473404",
"modified_by": "Administrator",
"module": "Core",
"name": "Navbar Item",
"owner": "Administrator",
"permissions": [],
"quick_entry": 1,
"row_format": "Dynamic",
"sort_field": "creation",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}
}

View file

@ -57,7 +57,7 @@ frappe.ui.menu = class ContextMenu {
if (typeof item.condition == "function") {
render = item.condition();
} else {
render = frappe.utils.eval_expression(item.condition);
render = frappe.utils.eval(item.condition);
}
if (render) {
this.add_menu_item(item);