mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 20:48:12 +08:00
text note should change its icon after having new note inserted into, fixes #361
This commit is contained in:
parent
c23387c0fb
commit
2ac560c56e
1 changed files with 3 additions and 0 deletions
|
@ -623,7 +623,10 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection
|
||||||
|
|
||||||
await node.getLastChild().setActive(true);
|
await node.getLastChild().setActive(true);
|
||||||
|
|
||||||
|
const parentNoteEntity = await treeCache.getNote(node.data.noteId);
|
||||||
|
|
||||||
node.folder = true;
|
node.folder = true;
|
||||||
|
node.icon = await treeBuilder.getIcon(parentNoteEntity); // icon might change into folder
|
||||||
node.renderTitle();
|
node.renderTitle();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue