mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-19 18:21:37 +08:00
feat(in-app-help): add icons for text notes
This commit is contained in:
parent
bac529f1f1
commit
62dc11f9b8
@ -40,6 +40,13 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
|||||||
attributes: []
|
attributes: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Handle attributes
|
||||||
|
for (const attribute of noteMeta.attributes ?? []) {
|
||||||
|
if (attribute.name === "iconClass") {
|
||||||
|
item.attributes?.push(attribute);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Handle text notes
|
// Handle text notes
|
||||||
if (noteMeta.type === "text" && noteMeta.dataFileName) {
|
if (noteMeta.type === "text" && noteMeta.dataFileName) {
|
||||||
const docPath = `${docNameRoot}/${path.basename(noteMeta.dataFileName, ".html")}`
|
const docPath = `${docNameRoot}/${path.basename(noteMeta.dataFileName, ".html")}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user