mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Disable update for docker containers (#715)
Also add docker info to about page and sentry context
This commit is contained in:
@@ -16,6 +16,7 @@ function UpdateSettings(props) {
|
||||
advancedSettings,
|
||||
settings,
|
||||
isMono,
|
||||
isDocker,
|
||||
onInputChange
|
||||
} = props;
|
||||
|
||||
@@ -35,6 +36,14 @@ function UpdateSettings(props) {
|
||||
{ key: 'script', value: 'Script' }
|
||||
];
|
||||
|
||||
if (isDocker) {
|
||||
return (
|
||||
<FieldSet legend="Updates">
|
||||
<div>Updating is disabled inside a docker container. Update the container image instead.</div>
|
||||
</FieldSet>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<FieldSet legend="Updates">
|
||||
<FormGroup
|
||||
@@ -117,6 +126,7 @@ UpdateSettings.propTypes = {
|
||||
advancedSettings: PropTypes.bool.isRequired,
|
||||
settings: PropTypes.object.isRequired,
|
||||
isMono: PropTypes.bool.isRequired,
|
||||
isDocker: PropTypes.bool.isRequired,
|
||||
onInputChange: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user