From b325b8933e7ea33f3a5c81b7c2523a15e52fcc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corne=CC=81=20Dorrestijn?= Date: Thu, 5 Jan 2023 20:52:37 +0100 Subject: [PATCH] Added a options in settings for redirect root no login --- app/soapbox/features/soapbox-config/index.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/soapbox/features/soapbox-config/index.tsx b/app/soapbox/features/soapbox-config/index.tsx index dc1ebdb0e..0b85272b1 100644 --- a/app/soapbox/features/soapbox-config/index.tsx +++ b/app/soapbox/features/soapbox-config/index.tsx @@ -54,6 +54,9 @@ const messages = defineMessages({ feedInjectionHint: { id: 'soapbox_config.feed_injection_hint', defaultMessage: 'Inject the feed with additional content, such as suggested profiles.' }, tileServerLabel: { id: 'soapbox_config.tile_server_label', defaultMessage: 'Map tile server' }, tileServerAttributionLabel: { id: 'soapbox_config.tile_server_attribution_label', defaultMessage: 'Map tiles attribution' }, + redirectRootNoLoginLabel: { id: 'soapbox_config.redirect_root_no_login_label', defaultMessage: 'Redirect root (no login)' }, + redirectRootNoLoginHint: { id: 'soapbox_config.redirect_root_no_login_hint', defaultMessage: 'Path to redirect a user to from the homepage when he is not logged in.' }, + redirectRootNoLoginPlaceholder: { id: 'soapbox_config.redirect_root_no_login_placeholder', defaultMessage: '/timeline/local' }, }); type ValueGetter = (e: React.ChangeEvent) => any; @@ -287,6 +290,18 @@ const SoapboxConfig: React.FC = () => { /> )} + + + e.target.value)} + /> +