mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add tooltip to fancytree node icon, #1120
This commit is contained in:
parent
2af2b45062
commit
e1c2573778
@ -553,6 +553,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
key: utils.randomString(12) // this should prevent some "duplicate key" errors
|
||||
};
|
||||
|
||||
node.iconTooltip = node.title;
|
||||
|
||||
if (node.folder && node.expanded) {
|
||||
node.children = await this.prepareChildren(note);
|
||||
}
|
||||
@ -839,6 +841,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
node.icon = this.getIcon(note, isFolder);
|
||||
node.extraClasses = this.getExtraClasses(note);
|
||||
node.title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title;
|
||||
node.iconTooltip = node.title;
|
||||
|
||||
if (node.isExpanded() !== branch.isExpanded) {
|
||||
node.setExpanded(branch.isExpanded, {noEvents: true});
|
||||
|
Loading…
x
Reference in New Issue
Block a user