mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Disable update for docker containers (#715)
Also add docker info to about page and sentry context
This commit is contained in:
parent
6afece237c
commit
4be01a5a95
13 changed files with 101 additions and 30 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue