mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	Fix showing unhoist confirm dialogue for bookmarked notes.
This commit is contained in:
		
							parent
							
								
									46bd5bc1ef
								
							
						
					
					
						commit
						a939599223
					
				| @ -48,11 +48,11 @@ async function checkNoteAccess(notePath, noteContext) { | |||||||
| 
 | 
 | ||||||
|     const hoistedNoteId = noteContext.hoistedNoteId; |     const hoistedNoteId = noteContext.hoistedNoteId; | ||||||
| 
 | 
 | ||||||
|     if (!resolvedNotePath.includes(hoistedNoteId) && !resolvedNotePath.includes('_hidden')) { |     if (!resolvedNotePath.includes(hoistedNoteId) && (!resolvedNotePath.includes('_hidden') || resolvedNotePath.includes('_lbBookmarks')) { | ||||||
|         const requestedNote = await froca.getNote(treeService.getNoteIdFromUrl(resolvedNotePath)); |         const requestedNote = await froca.getNote(treeService.getNoteIdFromUrl(resolvedNotePath)); | ||||||
|         const hoistedNote = await froca.getNote(hoistedNoteId); |         const hoistedNote = await froca.getNote(hoistedNoteId); | ||||||
| 
 | 
 | ||||||
|         if (!hoistedNote.hasAncestor('_hidden') |         if ((!hoistedNote.hasAncestor('_hidden') || resolvedNotePath.includes('_lbBookmarks')) | ||||||
|             && !await dialogService.confirm(`Requested note '${requestedNote.title}' is outside of hoisted note '${hoistedNote.title}' subtree and you must unhoist to access the note. Do you want to proceed with unhoisting?`)) { |             && !await dialogService.confirm(`Requested note '${requestedNote.title}' is outside of hoisted note '${hoistedNote.title}' subtree and you must unhoist to access the note. Do you want to proceed with unhoisting?`)) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 WantToLearnJapanese
						WantToLearnJapanese