refactor(settings): remove success message after media server switch

This commit is contained in:
0xsysr3ll
2026-02-24 21:31:38 +01:00
parent ca7b7885d3
commit ae89aa34df
2 changed files with 1 additions and 8 deletions

View File

@@ -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) {

View File

@@ -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",