fix icon of newly created note

This commit is contained in:
azivner 2018-11-14 08:42:00 +01:00
parent 427234293e
commit 247275d391
2 changed files with 4 additions and 2 deletions

View File

@ -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') {

View File

@ -159,5 +159,6 @@ async function getExtraClasses(note) {
export default {
prepareTree,
prepareBranch,
getExtraClasses
getExtraClasses,
getIcon
}