bookmarks use cloning

This commit is contained in:
zadam
2022-12-04 13:16:05 +01:00
parent cd60ad4267
commit 27ce273d29
12 changed files with 832 additions and 200 deletions

View File

@@ -740,12 +740,14 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
extraClasses.push("shared");
}
else if (note.getParentNoteIds().length > 1) {
const notSearchParents = note.getParentNoteIds()
const realClones = note.getParentNoteIds()
.map(noteId => froca.notes[noteId])
.filter(note => !!note)
.filter(note => note.type !== 'search');
.filter(note =>
!['share', 'lb_bookmarks'].includes(note.noteId)
&& note.type !== 'search');
if (notSearchParents.length > 1) {
if (realClones.length > 1) {
extraClasses.push("multiple-parents");
}
}