toggling encrypted/decrypted switches tree node status as well

This commit is contained in:
azivner 2017-09-08 23:41:29 -04:00
parent 07af2de0f5
commit 7c623d9a0b

View file

@ -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) {