Skip to content

Build your personal knowledge base with Trilium Notes

feat(in-app-help): render folders as book

Elian Doran122c1ad1ecea
diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.ts
index e2197e25bb..079d11d03b 100644
--- a/src/services/in_app_help.ts
+++ b/src/services/in_app_help.ts
@@ -33,13 +33,13 @@ function parseNoteMetaFile(noteMetaFile: NoteMetaFile): HiddenSubtreeItem[] {
}
function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeItem {
+ let iconClass: string = "bx bx-file";
const item: HiddenSubtreeItem = {
id: `_help_${noteMeta.noteId}`,
title: noteMeta.title,
- type: "doc",
+ type: "doc", // can change
attributes: []
};
- let iconClass: string = "bx bx-file";
// Handle attributes
for (const attribute of noteMeta.attributes ?? []) {
@@ -51,6 +51,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
// Handle folder notes
if (!noteMeta.dataFileName) {
iconClass = "bx bx-folder";
+ item.type = "book";
}
// Handle text notes