Skip to content

Build your personal knowledge base with Trilium Notes

toggling encrypted/decrypted switches tree node status as well

azivner7c623d9a0ba9
diff --git a/static/js/note.js b/static/js/note.js
index 2b126c392e..b9da973d67 100644
--- a/static/js/note.js
+++ b/static/js/note.js
@@ -162,6 +162,9 @@ function setNoteBackgroundIfEncrypted(note) {
$("#encryptButton").show();
$("#decryptButton").hide();
}
+
+ const node = getNodeByKey(note.detail.note_id);
+ node.toggleClass("encrypted", note.detail.encryption > 0);
}
function loadNote(noteId) {