diff options
author | 2020-10-04 16:27:26 +0200 | |
---|---|---|
committer | 2020-10-04 15:27:26 +0100 | |
commit | c9c067b286505621fbae3fc212638b45ae1c733a (patch) | |
tree | beb3001b26ec3ffc05528d11fe60033971655a7c /src/components/settings | |
parent | Fine-tune nightly releases scripts (diff) | |
download | ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.tar.gz ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.tar.zst ferdium-app-c9c067b286505621fbae3fc212638b45ae1c733a.zip |
Add setting to enable nightly releases updates (#742)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index 031203308..b6698b8e2 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -7,6 +7,7 @@ import { defineMessages, intlShape } from 'react-intl'; | |||
7 | import Form from '../../../lib/Form'; | 7 | import Form from '../../../lib/Form'; |
8 | import Button from '../../ui/Button'; | 8 | import Button from '../../ui/Button'; |
9 | import Toggle from '../../ui/Toggle'; | 9 | import Toggle from '../../ui/Toggle'; |
10 | import ToggleRaw from '../../ui/ToggleRaw'; | ||
10 | import Select from '../../ui/Select'; | 11 | import Select from '../../ui/Select'; |
11 | import PremiumFeatureContainer from '../../ui/PremiumFeatureContainer'; | 12 | import PremiumFeatureContainer from '../../ui/PremiumFeatureContainer'; |
12 | import Input from '../../ui/Input'; | 13 | import Input from '../../ui/Input'; |
@@ -170,6 +171,7 @@ export default @observer class EditSettingsForm extends Component { | |||
170 | hibernationEnabled: PropTypes.bool.isRequired, | 171 | hibernationEnabled: PropTypes.bool.isRequired, |
171 | isDarkmodeEnabled: PropTypes.bool.isRequired, | 172 | isDarkmodeEnabled: PropTypes.bool.isRequired, |
172 | isAdaptableDarkModeEnabled: PropTypes.bool.isRequired, | 173 | isAdaptableDarkModeEnabled: PropTypes.bool.isRequired, |
174 | isNightlyEnabled: PropTypes.bool.isRequired, | ||
173 | openProcessManager: PropTypes.func.isRequired, | 175 | openProcessManager: PropTypes.func.isRequired, |
174 | }; | 176 | }; |
175 | 177 | ||
@@ -224,6 +226,7 @@ export default @observer class EditSettingsForm extends Component { | |||
224 | isDarkmodeEnabled, | 226 | isDarkmodeEnabled, |
225 | openProcessManager, | 227 | openProcessManager, |
226 | isTodosActivated, | 228 | isTodosActivated, |
229 | isNightlyEnabled, | ||
227 | } = this.props; | 230 | } = this.props; |
228 | const { intl } = this.context; | 231 | const { intl } = this.context; |
229 | 232 | ||
@@ -593,6 +596,15 @@ export default @observer class EditSettingsForm extends Component { | |||
593 | {automaticUpdates && ( | 596 | {automaticUpdates && ( |
594 | <div> | 597 | <div> |
595 | <Toggle field={form.$('beta')} /> | 598 | <Toggle field={form.$('beta')} /> |
599 | <ToggleRaw | ||
600 | field={{ | ||
601 | value: isNightlyEnabled, | ||
602 | id: 'nightly', | ||
603 | label: 'Include nightly versions', | ||
604 | name: 'Nightly builds', | ||
605 | }} | ||
606 | onChange={window.ferdi.features.nightlyBuilds.toggleFeature} | ||
607 | /> | ||
596 | {updateIsReadyToInstall ? ( | 608 | {updateIsReadyToInstall ? ( |
597 | <Button | 609 | <Button |
598 | label={intl.formatMessage(messages.buttonInstallUpdate)} | 610 | label={intl.formatMessage(messages.buttonInstallUpdate)} |