encrypted notes are distinguished in the tree by shaded icons

This commit is contained in:
azivner
2017-09-08 23:14:42 -04:00
parent adf18132fb
commit 07af2de0f5
5 changed files with 15 additions and 2 deletions

View File

@@ -122,11 +122,12 @@ function createNote(node, parentKey, target, encryption) {
}),
contentType: "application/json",
success: function(result) {
let newNode = {
const newNode = {
title: newNoteName,
key: result.note_id,
note_id: result.note_id,
encryption: encryption
encryption: encryption,
extraClasses: encryption ? "encrypted" : ""
};
globalAllNoteIds.push(result.note_id);

View File

@@ -171,6 +171,8 @@ $(function(){
if (note.encryption > 0) {
note.title = "[encrypted]";
note.extraClasses = "encrypted";
}
else {
note.title = note.note_title;