From 2efe167f6d5f5cb65a2b749ba2fcee0934b247a3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 7 Aug 2023 12:59:19 -0400 Subject: [PATCH] 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 --- src/shared/components/person/settings.tsx | 26 +++++++++++++++++++++ src/shared/components/post/post-listing.tsx | 20 +++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) 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()}