new "iconClass" property on note_short, now together with cssClass respecting template relationship, #707

This commit is contained in:
zadam
2019-11-16 08:59:27 +01:00
parent 95c37cfdd1
commit e00ab5dbf9
3 changed files with 58 additions and 24 deletions

View File

@@ -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) {