add symbol to shared notes in the tree

This commit is contained in:
zadam
2021-12-22 15:01:54 +01:00
parent bc9903191e
commit 94e18dfb7c
4 changed files with 32 additions and 2 deletions

View File

@@ -661,7 +661,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
extraClasses.push("protected");
}
if (note.getParentNoteIds().length > 1) {
if (note.isShared()) {
extraClasses.push("shared");
}
else if (note.getParentNoteIds().length > 1) {
const notSearchParents = note.getParentNoteIds()
.map(noteId => froca.notes[noteId])
.filter(note => !!note)