diff --git a/src/components/Settings/SwitchMediaServerSection.tsx b/src/components/Settings/SwitchMediaServerSection.tsx index 4eb72c7cb..dca26d04f 100644 --- a/src/components/Settings/SwitchMediaServerSection.tsx +++ b/src/components/Settings/SwitchMediaServerSection.tsx @@ -27,8 +27,6 @@ function getTargetLabel(target: SwitchTargetServerType): string { const messages = defineMessages('components.Settings', { switchMediaServerError: 'Something went wrong while switching media server. Please try again.', - switchMediaServerSuccess: - 'Media server switched. All users logged out. Restart the server, then sign in again.', switchMediaServerStep1Plex: '1) Configure Jellyfin or Emby in the Jellyfin settings tab.', switchMediaServerStep2Plex: @@ -153,14 +151,10 @@ const SwitchMediaServerSection = () => { const handleSwitch = async () => { setSubmitting(true); try { - const { data } = await axios.post<{ message?: string }>( + await axios.post<{ message?: string }>( '/api/v1/settings/switch-media-server', targetPayload ); - addToast( - data?.message ?? intl.formatMessage(messages.switchMediaServerSuccess), - { appearance: 'success' } - ); setModalOpen(false); window.location.reload(); } catch (err: unknown) { diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index 5866adefc..f323e8ec1 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -1254,7 +1254,6 @@ "components.Settings.switchMediaServerStep4JellyfinEmby": "4) Choose the target below and switch.", "components.Settings.switchMediaServerStep4JellyfinEmbyToOther": "4) Sign in with the new media server.", "components.Settings.switchMediaServerStep4Plex": "4) Choose the target below and switch.", - "components.Settings.switchMediaServerSuccess": "Media server switched. All users logged out. Restart the server, then sign in again.", "components.Settings.switchMediaServerWarning": "Everyone will be logged out. You must restart the server after switching.", "components.Settings.switchTargetAfter": "New media server:", "components.Settings.switchToPlex": "Switch to Plex",