mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	note launchers by default open in the active note context but follow the same logic with ctrl/middle click as links
This commit is contained in:
		| @@ -111,7 +111,11 @@ function getAndValidateParent(params) { | ||||
|         throw new ValidationError(`Parent note "${params.parentNoteId}" not found.`); | ||||
|     } | ||||
|  | ||||
|     if (!params.ignoreForbiddenParents && (parentNote.isLaunchBarConfig() || parentNote.isOptions())) { | ||||
|     if (parentNote.type === 'launcher' && parentNote.noteId !== 'lbBookmarks') { | ||||
|         throw new ValidationError(`Creating child notes into launcher notes is not allowed.`); | ||||
|     } | ||||
|  | ||||
|     if (!params.ignoreForbiddenParents && (['lbRoot', 'hidden'].includes(parentNote.noteId) || parentNote.isOptions())) { | ||||
|         throw new ValidationError(`Creating child notes into '${parentNote.noteId}' is not allowed.`); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user