mirror of
https://github.com/seerr-team/seerr.git
synced 2026-04-17 22:07:59 -04:00
refactor(settings): remove success message after media server switch
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user