1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-16 23:39:44 +02:00

Show warning when using the docker update mechanism

(cherry picked from commit cc538c4b2d33a1734c45c0667776d946596107e9)
This commit is contained in:
Bogdan 2023-08-14 00:03:18 +03:00
parent 3c7f7f2e03
commit 0a04fad85b
4 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

@ -150,7 +150,7 @@ public static bool IsParentPath(this string parentPath, string childPath)
public static bool IsPathValid(this string path, PathValidationType validationType) public static bool IsPathValid(this string path, PathValidationType validationType)
{ {
if (path.ContainsInvalidPathChars() || string.IsNullOrWhiteSpace(path)) if (string.IsNullOrWhiteSpace(path) || path.ContainsInvalidPathChars())
{ {
return false; return false;
} }

View File

@ -90,6 +90,7 @@
"Automatic": "Automatic", "Automatic": "Automatic",
"AutomaticAdd": "Automatic Add", "AutomaticAdd": "Automatic Add",
"AutomaticSearch": "Automatic Search", "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", "AvailabilityDelay": "Availability Delay",
"AvailabilityDelayHelpText": "Amount of time before or after available date to search for Movie", "AvailabilityDelayHelpText": "Amount of time before or after available date to search for Movie",
"Backup": "Backup", "Backup": "Backup",