mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(react): fix configure languages open in background
This commit is contained in:
		| @@ -80,7 +80,7 @@ interface FormListItemOpts { | ||||
|     disabled?: boolean; | ||||
|     checked?: boolean | null; | ||||
|     selected?: boolean; | ||||
|     onClick?: () => void; | ||||
|     onClick?: (e: MouseEvent) => void; | ||||
|     triggerCommand?: CommandNames; | ||||
|     description?: string; | ||||
|     className?: string; | ||||
|   | ||||
| @@ -330,7 +330,10 @@ function NoteLanguageSwitch({ note }: { note?: FNote | null }) { | ||||
|                 })} | ||||
|  | ||||
|                 <FormListItem | ||||
|                     onClick={() => appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true })} | ||||
|                     onClick={(e) => { | ||||
|                         e.stopPropagation(); | ||||
|                         appContext.tabManager.openContextWithNote("_optionsLocalization", { activate: true }); | ||||
|                     }} | ||||
|                 >{t("note_language.configure-languages")}</FormListItem>            | ||||
|             </Dropdown> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user