From dc34d6c1f68de8e82a2ccb64bf6f7fcabdda36c1 Mon Sep 17 00:00:00 2001 From: gauthier-th Date: Mon, 19 Aug 2024 19:48:58 +0200 Subject: [PATCH] fix: move "scanning in background" tip next to the scanning section --- src/components/Settings/SettingsJellyfin.tsx | 23 +++++++++++++++----- src/components/Setup/index.tsx | 12 +--------- src/pages/settings/jellyfin.tsx | 2 +- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/components/Settings/SettingsJellyfin.tsx b/src/components/Settings/SettingsJellyfin.tsx index 27a0ad5e7..316dc48ef 100644 --- a/src/components/Settings/SettingsJellyfin.tsx +++ b/src/components/Settings/SettingsJellyfin.tsx @@ -62,6 +62,9 @@ const messages = defineMessages('components.Settings', { validationUrlTrailingSlash: 'URL must not end in a trailing slash', validationUrlBaseLeadingSlash: 'URL base must have a leading slash', validationUrlBaseTrailingSlash: 'URL base must not end in a trailing slash', + tip: 'Tip', + scanbackground: + 'Scanning will run in the background. You can continue the setup process in the meantime.', }); interface Library { @@ -79,13 +82,13 @@ interface SyncStatus { } interface SettingsJellyfinProps { - showAdvancedSettings?: boolean; + isSetupSettings?: boolean; onComplete?: () => void; } const SettingsJellyfin: React.FC = ({ onComplete, - showAdvancedSettings, + isSetupSettings, }) => { const [isSyncing, setIsSyncing] = useState(false); const toasts = useToasts(); @@ -447,6 +450,14 @@ const SettingsJellyfin: React.FC = ({ + {isSetupSettings && ( +
+ + {intl.formatMessage(messages.tip)} + + {intl.formatMessage(messages.scanbackground)} +
+ )}

{intl.formatMessage( @@ -548,7 +559,7 @@ const SettingsJellyfin: React.FC = ({ }) => { return (
- {showAdvancedSettings && ( + {!isSetupSettings && ( <>

- {showAdvancedSettings && ( + {!isSetupSettings && ( <>
-
+