mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
new "iconClass" property on note_short, now together with cssClass respecting template relationship, #707
This commit is contained in:
@@ -41,7 +41,10 @@ const NOTE_TYPE_ICONS = {
|
||||
async function getIcon(note) {
|
||||
const hoistedNoteId = await hoistedNoteService.getHoistedNoteId();
|
||||
|
||||
if (note.noteId === 'root') {
|
||||
if (note.iconClass) {
|
||||
return note.iconClass;
|
||||
}
|
||||
else if (note.noteId === 'root') {
|
||||
return "bx bx-chevrons-right";
|
||||
}
|
||||
else if (note.noteId === hoistedNoteId) {
|
||||
|
||||
Reference in New Issue
Block a user