Skip to content

Commit

Permalink
Don't block update UI settings under docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Aug 18, 2023
1 parent 1202a43 commit 8b36a5c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions frontend/src/Settings/General/GeneralSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class GeneralSettings extends Component {
isResettingApiKey,
isWindows,
isWindowsService,
isDocker,
mode,
packageUpdateMechanism,
onInputChange,
Expand Down Expand Up @@ -171,7 +170,6 @@ class GeneralSettings extends Component {
settings={settings}
isWindows={isWindows}
packageUpdateMechanism={packageUpdateMechanism}
isDocker={isDocker}
onInputChange={onInputChange}
/>

Expand Down Expand Up @@ -214,7 +212,6 @@ GeneralSettings.propTypes = {
hasSettings: PropTypes.bool.isRequired,
isWindows: PropTypes.bool.isRequired,
isWindowsService: PropTypes.bool.isRequired,
isDocker: PropTypes.bool.isRequired,
mode: PropTypes.string.isRequired,
packageUpdateMechanism: PropTypes.string.isRequired,
onInputChange: PropTypes.func.isRequired,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Settings/General/GeneralSettingsConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function createMapStateToProps() {
isResettingApiKey,
isWindows: systemStatus.isWindows,
isWindowsService: systemStatus.isWindows && systemStatus.mode === 'service',
isDocker: systemStatus.isDocker,
mode: systemStatus.mode,
packageUpdateMechanism: systemStatus.packageUpdateMechanism,
...sectionSettings
Expand Down
11 changes: 0 additions & 11 deletions frontend/src/Settings/General/UpdateSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ function UpdateSettings(props) {

updateOptions.push({ key: 'script', value: 'Script' });

if (isDocker) {
return (
<FieldSet legend={translate('Updates')}>
<div>
{translate('UpdatingIsDisabledInsideADockerContainerUpdateTheContainerImageInstead')}
</div>
</FieldSet>
);
}

return (
<FieldSet legend={translate('Updates')}>
<FormGroup
Expand Down Expand Up @@ -145,7 +135,6 @@ UpdateSettings.propTypes = {
advancedSettings: PropTypes.bool.isRequired,
settings: PropTypes.object.isRequired,
isWindows: PropTypes.bool.isRequired,
isDocker: PropTypes.bool.isRequired,
packageUpdateMechanism: PropTypes.string.isRequired,
onInputChange: PropTypes.func.isRequired
};
Expand Down

0 comments on commit 8b36a5c

Please sign in to comment.