mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
fix(ui): show translated string on sonarr sucesss/failure toast messages (#1035)
This commit is contained in:
@@ -185,7 +185,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
|
|||||||
setIsValidated(true);
|
setIsValidated(true);
|
||||||
setTestResponse(response.data);
|
setTestResponse(response.data);
|
||||||
if (initialLoad.current) {
|
if (initialLoad.current) {
|
||||||
addToast('Sonarr connection established!', {
|
addToast(intl.formatMessage(messages.toastSonarrTestSuccess), {
|
||||||
appearance: 'success',
|
appearance: 'success',
|
||||||
autoDismiss: true,
|
autoDismiss: true,
|
||||||
});
|
});
|
||||||
@@ -193,7 +193,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
setIsValidated(false);
|
setIsValidated(false);
|
||||||
if (initialLoad.current) {
|
if (initialLoad.current) {
|
||||||
addToast('Failed to connect to Sonarr server', {
|
addToast(intl.formatMessage(messages.toastSonarrTestFailure), {
|
||||||
appearance: 'error',
|
appearance: 'error',
|
||||||
autoDismiss: true,
|
autoDismiss: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user