From 122c1ad1ecea2e9797b738e07d26279c0e6b5ae9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 2 Feb 2025 17:34:52 +0200 Subject: [PATCH] feat(in-app-help): render folders as book --- src/services/in_app_help.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.ts index e2197e25b..079d11d03 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