mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
unprotecting note outside of protected session is not forbidden because it could overwrite previous note
This commit is contained in:
@@ -419,7 +419,7 @@ function scrollToCurrentNote() {
|
||||
}
|
||||
|
||||
function setBranchBackgroundBasedOnProtectedStatus(noteId) {
|
||||
getNodesByNoteId(noteId).map(node => node.toggleClass("protected", !!node.data.isProtected));
|
||||
getNodesByNoteId(noteId).map(node => node.toggleClass("protected", node.data.isProtected));
|
||||
}
|
||||
|
||||
function setProtected(noteId, isProtected) {
|
||||
|
||||
Reference in New Issue
Block a user