mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	grey out archived items in the tree
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| const sql = require('../../services/sql'); | ||||
| const optionService = require('../../services/options'); | ||||
| const protectedSessionService = require('../../services/protected_session'); | ||||
| const noteCacheService = require('../../services/note_cache'); | ||||
|  | ||||
| async function getNotes(noteIds) { | ||||
|     const notes = await sql.getManyRows(` | ||||
| @@ -31,7 +32,11 @@ async function getNotes(noteIds) { | ||||
|  | ||||
|     protectedSessionService.decryptNotes(notes); | ||||
|  | ||||
|     notes.forEach(note => note.isProtected = !!note.isProtected); | ||||
|     notes.forEach(note => { | ||||
|         note.isProtected = !!note.isProtected; | ||||
|         note.archived = noteCacheService.isArchived(note.noteId) | ||||
|     }); | ||||
|  | ||||
|     return notes; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user