mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix icon of newly created note
This commit is contained in:
parent
427234293e
commit
247275d391
@ -516,7 +516,8 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection
|
|||||||
refKey: branchEntity.noteId,
|
refKey: branchEntity.noteId,
|
||||||
branchId: branchEntity.branchId,
|
branchId: branchEntity.branchId,
|
||||||
isProtected: isProtected,
|
isProtected: isProtected,
|
||||||
extraClasses: await treeBuilder.getExtraClasses(noteEntity)
|
extraClasses: await treeBuilder.getExtraClasses(noteEntity),
|
||||||
|
icon: treeBuilder.getIcon(noteEntity)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (target === 'after') {
|
if (target === 'after') {
|
||||||
|
@ -159,5 +159,6 @@ async function getExtraClasses(note) {
|
|||||||
export default {
|
export default {
|
||||||
prepareTree,
|
prepareTree,
|
||||||
prepareBranch,
|
prepareBranch,
|
||||||
getExtraClasses
|
getExtraClasses,
|
||||||
|
getIcon
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user