mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
chore(react): fix configure languages open in background
This commit is contained in:
parent
e89162838e
commit
3ec2947c4f
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user