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,
|
||||
branchId: branchEntity.branchId,
|
||||
isProtected: isProtected,
|
||||
extraClasses: await treeBuilder.getExtraClasses(noteEntity)
|
||||
extraClasses: await treeBuilder.getExtraClasses(noteEntity),
|
||||
icon: treeBuilder.getIcon(noteEntity)
|
||||
};
|
||||
|
||||
if (target === 'after') {
|
||||
|
@ -159,5 +159,6 @@ async function getExtraClasses(note) {
|
||||
export default {
|
||||
prepareTree,
|
||||
prepareBranch,
|
||||
getExtraClasses
|
||||
getExtraClasses,
|
||||
getIcon
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user