mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
display "multiple-parents" asterisk only for multiple non-search parents
This commit is contained in:
@@ -652,7 +652,14 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
if (note.getParentNoteIds().length > 1) {
|
||||
extraClasses.push("multiple-parents");
|
||||
const notSearchParents = note.getParentNoteIds()
|
||||
.map(noteId => froca.notes[noteId])
|
||||
.filter(note => !!note)
|
||||
.map(note => note.type !== 'search');
|
||||
|
||||
if (notSearchParents.length > 1) {
|
||||
extraClasses.push("multiple-parents");
|
||||
}
|
||||
}
|
||||
|
||||
const cssClass = note.getCssClass();
|
||||
|
||||
Reference in New Issue
Block a user