From: Dessalines Date: Mon, 7 Aug 2023 16:59:19 +0000 (-0400) Subject: Add open links in new tab (#2032) X-Git-Url: http://these/git/%22https:/www.exeterceilidhs.net/%22%7B%7D/%22?a=commitdiff_plain;h=2efe167f6d5f5cb65a2b749ba2fcee0934b247a3;p=lemmy-ui.git Add open links in new tab (#2032) * Open links in a new tab setting in UI * fixes according to review * also open external links when setting is enabled * oopsie * oopsie 2 * pull translations * Fixing PR comments. * Fix prettier. --------- Co-authored-by: Dogeek Co-authored-by: Simon Bordeyne Co-authored-by: SleeplessOne1917 --- diff --git a/src/shared/components/person/settings.tsx b/src/shared/components/person/settings.tsx index d045047..659c77c 100644 --- a/src/shared/components/person/settings.tsx +++ b/src/shared/components/person/settings.tsx @@ -73,6 +73,7 @@ interface SettingsState { show_new_post_notifs?: boolean; discussion_languages?: number[]; generate_totp_2fa?: boolean; + open_links_in_new_tab?: boolean; }; changePasswordForm: { new_password?: string; @@ -780,6 +781,23 @@ export class Settings extends Component { +
+
+ + +
+
{this.totpSection()}