mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
text note should change its icon after having new note inserted into, fixes #361
This commit is contained in:
parent
c23387c0fb
commit
2ac560c56e
@ -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…
x
Reference in New Issue
Block a user