mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
using jam font icon pack instead of feather, fixes #204
This commit is contained in:
@@ -393,11 +393,24 @@ function initFancyTree(tree) {
|
||||
if (item.title === '----') {
|
||||
$treeContextMenu.append($("<div>").addClass("dropdown-divider"));
|
||||
} else {
|
||||
const $icon = $("<span>");
|
||||
|
||||
if (item.uiIcon) {
|
||||
$icon.addClass("jam jam-" + item.uiIcon);
|
||||
}
|
||||
else {
|
||||
$icon.append(" ");
|
||||
}
|
||||
|
||||
const $item = $("<a>")
|
||||
.append($icon)
|
||||
.append(" ") // some space between icon and text
|
||||
.addClass("dropdown-item")
|
||||
.prop("data-cmd", item.cmd)
|
||||
.append(item.title);
|
||||
|
||||
|
||||
|
||||
if (item.enabled !== undefined && !item.enabled) {
|
||||
$item.addClass("disabled");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user