mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(hidden_subtree): update help note icons
This commit is contained in:
parent
97bc103e76
commit
a1bfc6aae7
@ -408,10 +408,13 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
|
||||
value: attr.value,
|
||||
isInheritable: false
|
||||
}).save();
|
||||
} else if (attr.name === "docName") {
|
||||
// Updating docname
|
||||
existingAttribute.value = attr.value ?? "";
|
||||
existingAttribute.save();
|
||||
} else if (attr.name === "docName"
|
||||
|| (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {
|
||||
if (existingAttribute.value !== attr.value) {
|
||||
existingAttribute.value = attr.value ?? "";
|
||||
console.log("Updating attribute ", attrId);
|
||||
existingAttribute.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user