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