Skip to content

Build your personal knowledge base with Trilium Notes

feat(in-app-help): add icons for text notes

Elian Doran62dc11f9b823
diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.ts
index 803fb57dd6..6e8aefb61f 100644
--- a/src/services/in_app_help.ts
+++ b/src/services/in_app_help.ts
@@ -40,6 +40,13 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
attributes: []
};
+ // Handle attributes
+ for (const attribute of noteMeta.attributes ?? []) {
+ if (attribute.name === "iconClass") {
+ item.attributes?.push(attribute);
+ }
+ }
+
// Handle text notes
if (noteMeta.type === "text" && noteMeta.dataFileName) {
const docPath = `${docNameRoot}/${path.basename(noteMeta.dataFileName, ".html")}`