mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Merge branch 'stable'
# Conflicts: # libraries/ckeditor/ckeditor.js # libraries/ckeditor/ckeditor.js.map
This commit is contained in:
commit
4cacd1dfa2
2
libraries/ckeditor/ckeditor.js
vendored
2
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -746,19 +746,11 @@ async function createNoteInto() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function checkFolderStatus(node) {
|
async function checkFolderStatus(node) {
|
||||||
const children = node.getChildren();
|
|
||||||
const note = await treeCache.getNote(node.data.noteId);
|
const note = await treeCache.getNote(node.data.noteId);
|
||||||
|
|
||||||
if (!children || children.length === 0) {
|
node.folder = note.type === 'search' || note.getChildNoteIds().length > 0;
|
||||||
node.folder = false;
|
node.icon = await treeBuilder.getIcon(note);
|
||||||
node.icon = await treeBuilder.getIcon(note);
|
node.renderTitle();
|
||||||
node.renderTitle();
|
|
||||||
}
|
|
||||||
else if (children && children.length > 0) {
|
|
||||||
node.folder = true;
|
|
||||||
node.icon = await treeBuilder.getIcon(note);
|
|
||||||
node.renderTitle();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function reloadNote(noteId) {
|
async function reloadNote(noteId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user