mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-08 05:09:13 -05:00
toggling encrypted/decrypted switches tree node status as well
This commit is contained in:
@@ -162,6 +162,9 @@ function setNoteBackgroundIfEncrypted(note) {
|
|||||||
$("#encryptButton").show();
|
$("#encryptButton").show();
|
||||||
$("#decryptButton").hide();
|
$("#decryptButton").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const node = getNodeByKey(note.detail.note_id);
|
||||||
|
node.toggleClass("encrypted", note.detail.encryption > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadNote(noteId) {
|
function loadNote(noteId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user