From 01f29dd50553b285a72ceaa4d913e32ab104a31a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 17 Aug 2023 17:17:47 +0300 Subject: [PATCH] Don't block update UI settings under docker --- frontend/src/Settings/General/GeneralSettings.js | 3 --- .../src/Settings/General/GeneralSettingsConnector.js | 1 - frontend/src/Settings/General/UpdateSettings.js | 11 ----------- 3 files changed, 15 deletions(-) diff --git a/frontend/src/Settings/General/GeneralSettings.js b/frontend/src/Settings/General/GeneralSettings.js index 5ecc35356..91e7287ee 100644 --- a/frontend/src/Settings/General/GeneralSettings.js +++ b/frontend/src/Settings/General/GeneralSettings.js @@ -103,7 +103,6 @@ class GeneralSettings extends Component { isResettingApiKey, isWindows, isWindowsService, - isDocker, mode, packageUpdateMechanism, onInputChange, @@ -171,7 +170,6 @@ class GeneralSettings extends Component { settings={settings} isWindows={isWindows} packageUpdateMechanism={packageUpdateMechanism} - isDocker={isDocker} onInputChange={onInputChange} /> @@ -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, diff --git a/frontend/src/Settings/General/GeneralSettingsConnector.js b/frontend/src/Settings/General/GeneralSettingsConnector.js index 760ffde46..18b23a950 100644 --- a/frontend/src/Settings/General/GeneralSettingsConnector.js +++ b/frontend/src/Settings/General/GeneralSettingsConnector.js @@ -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 diff --git a/frontend/src/Settings/General/UpdateSettings.js b/frontend/src/Settings/General/UpdateSettings.js index d52566fc6..ec5bc9d66 100644 --- a/frontend/src/Settings/General/UpdateSettings.js +++ b/frontend/src/Settings/General/UpdateSettings.js @@ -44,16 +44,6 @@ function UpdateSettings(props) { updateOptions.push({ key: 'script', value: 'Script' }); - if (isDocker) { - return ( -
-
- {translate('UpdatingIsDisabledInsideADockerContainerUpdateTheContainerImageInstead')} -
-
- ); - } - return (