mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	deleting a note will close all tabs containing the note
This commit is contained in:
		| @@ -373,9 +373,10 @@ async function updateNote(noteId, noteUpdates) { | ||||
|     await protectNoteRevisions(note); | ||||
| } | ||||
|  | ||||
| /** @return {boolean} - true if note has been deleted, false otherwise */ | ||||
| async function deleteNote(branch) { | ||||
|     if (!branch || branch.isDeleted) { | ||||
|         return; | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|     if (branch.branchId === 'root' | ||||
| @@ -418,6 +419,11 @@ async function deleteNote(branch) { | ||||
|             link.isDeleted = true; | ||||
|             await link.save(); | ||||
|         } | ||||
|  | ||||
|         return true; | ||||
|     } | ||||
|     else { | ||||
|         return false; | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user