mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
notes with multiple parents are now marked with dashed underline
This commit is contained in:
@@ -106,8 +106,20 @@ const noteTree = (function() {
|
||||
|
||||
note.title = note.note_title;
|
||||
|
||||
note.extraClasses = "";
|
||||
|
||||
if (note.is_protected) {
|
||||
note.extraClasses = "protected";
|
||||
note.extraClasses += ",protected";
|
||||
}
|
||||
|
||||
if (childToParents[childNoteId].length > 1) {
|
||||
console.log("Multiple classes!");
|
||||
|
||||
note.extraClasses += ",multiple-parents";
|
||||
}
|
||||
|
||||
if (note.extraClasses.startsWith(",")) {
|
||||
note.extraClasses = note.extraClasses.substr(1);
|
||||
}
|
||||
|
||||
note.key = counter++ + ""; // key needs to be string
|
||||
|
||||
Reference in New Issue
Block a user