Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(in-app-help): add default icon for notes
Elian Doran02708d593fbc
diff --git a/src/services/in_app_help.ts b/src/services/in_app_help.tsindex c1ce8c4bc1..e2197e25bb 100644--- a/src/services/in_app_help.ts+++ b/src/services/in_app_help.ts@@ -39,7 +39,7 @@ function parseNoteMeta(noteMeta: NoteMeta, docNameRoot: string): HiddenSubtreeIttype: "doc",attributes: []};- let iconClass: string | undefined = undefined;+ let iconClass: string = "bx bx-file";// Handle attributesfor (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;}