Show warning when using the docker update mechanism

(cherry picked from commit cc538c4b2d33a1734c45c0667776d946596107e9)
pull/9020/head
Bogdan 1 year ago
parent 3c7f7f2e03
commit 0a04fad85b

@ -76,6 +76,7 @@ function UpdateSettings(props) {
type={inputTypes.CHECK}
name="updateAutomatically"
helpText={translate('UpdateAutomaticallyHelpText')}
helpTextWarning={updateMechanism.value === 'docker' ? translate('AutomaticUpdatesDisabledDocker', { appName: 'Radarr' }) : undefined}
onChange={onInputChange}
{...updateAutomatically}
/>

@ -112,7 +112,6 @@ class Updates extends Component {
name={icons.CHECK_CIRCLE}
size={30}
/>
<div className={styles.message}>
{translate('OnLatestVersion')}
</div>
@ -151,7 +150,7 @@ class Updates extends Component {
{
update.branch === 'master' ?
null:
null :
<Label
className={styles.label}
>

@ -150,7 +150,7 @@ namespace NzbDrone.Common.Extensions
public static bool IsPathValid(this string path, PathValidationType validationType)
{
if (path.ContainsInvalidPathChars() || string.IsNullOrWhiteSpace(path))
if (string.IsNullOrWhiteSpace(path) || path.ContainsInvalidPathChars())
{
return false;
}

@ -90,6 +90,7 @@
"Automatic": "Automatic",
"AutomaticAdd": "Automatic Add",
"AutomaticSearch": "Automatic Search",
"AutomaticUpdatesDisabledDocker": "Automatic updates are not directly supported when using the Docker update mechanism. You will need to update the container image outside of {appName} or use a script",
"AvailabilityDelay": "Availability Delay",
"AvailabilityDelayHelpText": "Amount of time before or after available date to search for Movie",
"Backup": "Backup",

Loading…
Cancel
Save