mirror of
https://github.com/zadam/trilium.git
synced 2025-03-03 18:49:27 +08:00
toggling encrypted/decrypted switches tree node status as well
This commit is contained in:
parent
07af2de0f5
commit
7c623d9a0b
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue