mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
feat(in-app-help): add default icon for notes
This commit is contained in:
@@ -39,7 +39,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
|||||||
type: "doc",
|
type: "doc",
|
||||||
attributes: []
|
attributes: []
|
||||||
};
|
};
|
||||||
let iconClass: string | undefined = undefined;
|
let iconClass: string = "bx bx-file";
|
||||||
|
|
||||||
// Handle attributes
|
// Handle attributes
|
||||||
for (const attribute of noteMeta.attributes ?? []) {
|
for (const attribute of noteMeta.attributes ?? []) {
|
||||||
@@ -76,13 +76,11 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIt
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle note icon
|
// Handle note icon
|
||||||
if (iconClass) {
|
item.attributes?.push({
|
||||||
item.attributes?.push({
|
name: "iconClass",
|
||||||
name: "iconClass",
|
value: iconClass,
|
||||||
value: iconClass,
|
type: "label"
|
||||||
type: "label"
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user