mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	encrypted notes are distinguished in the tree by shaded icons
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								static/icons/file-shaded.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/icons/file-shaded.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 314 B | 
							
								
								
									
										
											BIN
										
									
								
								static/icons/folder-shaded.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/icons/folder-shaded.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 342 B | 
| @@ -122,11 +122,12 @@ function createNote(node, parentKey, target, encryption) { | |||||||
|         }), |         }), | ||||||
|         contentType: "application/json", |         contentType: "application/json", | ||||||
|         success: function(result) { |         success: function(result) { | ||||||
|             let newNode = { |             const newNode = { | ||||||
|                 title: newNoteName, |                 title: newNoteName, | ||||||
|                 key: result.note_id, |                 key: result.note_id, | ||||||
|                 note_id: result.note_id, |                 note_id: result.note_id, | ||||||
|                 encryption: encryption |                 encryption: encryption, | ||||||
|  |                 extraClasses: encryption ? "encrypted" : "" | ||||||
|             }; |             }; | ||||||
|  |  | ||||||
|             globalAllNoteIds.push(result.note_id); |             globalAllNoteIds.push(result.note_id); | ||||||
|   | |||||||
| @@ -171,6 +171,8 @@ $(function(){ | |||||||
|  |  | ||||||
|                 if (note.encryption > 0) { |                 if (note.encryption > 0) { | ||||||
|                     note.title = "[encrypted]"; |                     note.title = "[encrypted]"; | ||||||
|  |  | ||||||
|  |                     note.extraClasses = "encrypted"; | ||||||
|                 } |                 } | ||||||
|                 else { |                 else { | ||||||
|                     note.title = note.note_title; |                     note.title = note.note_title; | ||||||
|   | |||||||
| @@ -48,6 +48,16 @@ span.fancytree-node.fancytree-folder > span.fancytree-icon { | |||||||
|     background-image: url("icons/folder.png"); |     background-image: url("icons/folder.png"); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | span.fancytree-node.encrypted > span.fancytree-icon { | ||||||
|  |     background-position: 0 0; | ||||||
|  |     background-image: url("icons/file-shaded.png"); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | span.fancytree-node.encrypted.fancytree-folder > span.fancytree-icon { | ||||||
|  |     background-position: 0 0; | ||||||
|  |     background-image: url("icons/folder-shaded.png"); | ||||||
|  | } | ||||||
|  |  | ||||||
| .ui-autocomplete { | .ui-autocomplete { | ||||||
|     max-height: 300px; |     max-height: 300px; | ||||||
|     overflow-y: auto; |     overflow-y: auto; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user