mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-05 13:19:51 -06:00
support for cssClass label on note
This commit is contained in:
@@ -7,6 +7,7 @@ class NoteShort {
|
||||
this.type = row.type;
|
||||
this.mime = row.mime;
|
||||
this.archived = row.archived;
|
||||
this.cssClass = row.cssClass;
|
||||
}
|
||||
|
||||
isJson() {
|
||||
|
||||
@@ -115,6 +115,10 @@ async function getExtraClasses(note) {
|
||||
extraClasses.push("multiple-parents");
|
||||
}
|
||||
|
||||
if (note.cssClass) {
|
||||
extraClasses.push(note.cssClass);
|
||||
}
|
||||
|
||||
extraClasses.push(note.type);
|
||||
|
||||
return extraClasses.join(" ");
|
||||
|
||||
Reference in New Issue
Block a user