mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
correct reloading of note subtree when relevant labels change
This commit is contained in:
parent
0040334e89
commit
7dd19c0366
@ -508,13 +508,13 @@ class NoteShort {
|
||||
visitedNoteIds.add(this.noteId);
|
||||
|
||||
for (const templateNote of this.getTemplateNotes()) {
|
||||
if (templateNote.hasAncestor(ancestorNote)) {
|
||||
if (templateNote.hasAncestor(ancestorNote, visitedNoteIds)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
for (const parentNote of this.getParentNotes()) {
|
||||
if (parentNote.hasAncestor(ancestorNote)) {
|
||||
if (parentNote.hasAncestor(ancestorNote, visitedNoteIds)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -1030,7 +1030,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
const noteIdsToReload = new Set();
|
||||
|
||||
for (const attr of loadResults.getAttributes()) {
|
||||
if (attr.type === 'label' && ['iconClass', 'cssClass'].includes(attr.name)) {
|
||||
if (attr.type === 'label' && ['iconClass', 'cssClass', 'workspace', 'workspaceIconClass', 'archived'].includes(attr.name)) {
|
||||
if (attr.isInheritable) {
|
||||
noteIdsToReload.add(attr.noteId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user