diff --git a/src/components/Settings/RadarrModal/index.tsx b/src/components/Settings/RadarrModal/index.tsx index dbe47c9fd..0734a8b96 100644 --- a/src/components/Settings/RadarrModal/index.tsx +++ b/src/components/Settings/RadarrModal/index.tsx @@ -17,6 +17,7 @@ const messages = defineMessages({ validationApiKeyRequired: 'You must provide an API key', validationRootFolderRequired: 'You must select a root folder', validationProfileRequired: 'You must select a profile', + validationMinimumAvailabilityRequired: 'You must select minimum availability', toastRadarrTestSuccess: 'Radarr connection established!', toastRadarrTestFailure: 'Failed to connect to Radarr Server', saving: 'Saving...', @@ -89,6 +90,9 @@ const RadarrModal: React.FC = ({ activeProfileId: Yup.string().required( intl.formatMessage(messages.validationProfileRequired) ), + minimumAvailability: Yup.string().required( + intl.formatMessage(messages.validationMinimumAvailabilityRequired) + ), }); const testConnection = useCallback( @@ -534,6 +538,12 @@ const RadarrModal: React.FC = ({ + {errors.minimumAvailability && + touched.minimumAvailability && ( +
+ {errors.minimumAvailability} +
+ )}
diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index 8b1b27e39..b1d7b2bf0 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -135,6 +135,7 @@ "components.Settings.RadarrModal.toastRadarrTestSuccess": "Radarr connection established!", "components.Settings.RadarrModal.validationApiKeyRequired": "You must provide an API key", "components.Settings.RadarrModal.validationHostnameRequired": "You must provide a hostname/IP", + "components.Settings.RadarrModal.validationMinimumAvailabilityRequired": "You must select minimum availability", "components.Settings.RadarrModal.validationNameRequired": "You must provide a server name", "components.Settings.RadarrModal.validationPortRequired": "You must provide a port", "components.Settings.RadarrModal.validationProfileRequired": "You must select a profile",