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

This commit is contained in:
Elian Doran 2025-02-02 16:54:09 +02:00
parent bac529f1f1
commit 62dc11f9b8
No known key found for this signature in database

View File

@ -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")}`