mirror of
https://github.com/sct/overseerr.git
synced 2025-09-30 05:54:03 +02: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);
|
||||
setTestResponse(response.data);
|
||||
if (initialLoad.current) {
|
||||
addToast('Sonarr connection established!', {
|
||||
addToast(intl.formatMessage(messages.toastSonarrTestSuccess), {
|
||||
appearance: 'success',
|
||||
autoDismiss: true,
|
||||
});
|
||||
@@ -193,7 +193,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
|
||||
} catch (e) {
|
||||
setIsValidated(false);
|
||||
if (initialLoad.current) {
|
||||
addToast('Failed to connect to Sonarr server', {
|
||||
addToast(intl.formatMessage(messages.toastSonarrTestFailure), {
|
||||
appearance: 'error',
|
||||
autoDismiss: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user