mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 19:51:36 +08:00
feat(in-app-help): add default icon for notes
This commit is contained in:
parent
6215a21bae
commit
02708d593f
@ -39,7 +39,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
||||
type: "doc",
|
||||
attributes: []
|
||||
};
|
||||
let iconClass: string | undefined = undefined;
|
||||
let iconClass: string = "bx bx-file";
|
||||
|
||||
// Handle attributes
|
||||
for (const attribute of noteMeta.attributes ?? []) {
|
||||
@ -76,13 +76,11 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
||||
}
|
||||
|
||||
// Handle note icon
|
||||
if (iconClass) {
|
||||
item.attributes?.push({
|
||||
name: "iconClass",
|
||||
value: iconClass,
|
||||
type: "label"
|
||||
});
|
||||
}
|
||||
item.attributes?.push({
|
||||
name: "iconClass",
|
||||
value: iconClass,
|
||||
type: "label"
|
||||
});
|
||||
|
||||
return item;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user