mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	encrypted notes are distinguished in the tree by shaded icons
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
| @@ -171,6 +171,8 @@ $(function(){ | ||||
|  | ||||
|                 if (note.encryption > 0) { | ||||
|                     note.title = "[encrypted]"; | ||||
|  | ||||
|                     note.extraClasses = "encrypted"; | ||||
|                 } | ||||
|                 else { | ||||
|                     note.title = note.note_title; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user