diff options
author | 2021-10-16 10:26:13 +0200 | |
---|---|---|
committer | 2021-10-16 13:56:13 +0530 | |
commit | 09c2482eda07cdc4d2f03622f18de069848264ec (patch) | |
tree | a7481bd73527fc55d6f954dd4dfd76d61c0720c6 /src/containers/settings | |
parent | 5.6.3-nightly.35 [skip ci] (diff) | |
download | ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.tar.gz ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.tar.zst ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.zip |
feat: add new preference to allow per-service wake-up (#2085)
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditServiceScreen.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/containers/settings/EditServiceScreen.js b/src/containers/settings/EditServiceScreen.js index 85af0334d..972d3d251 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -37,6 +37,10 @@ const messages = defineMessages({ | |||
37 | id: 'settings.service.form.enableHibernation', | 37 | id: 'settings.service.form.enableHibernation', |
38 | defaultMessage: 'Enable hibernation', | 38 | defaultMessage: 'Enable hibernation', |
39 | }, | 39 | }, |
40 | enableWakeUp: { | ||
41 | id: 'settings.service.form.enableWakeUp', | ||
42 | defaultMessage: 'Enable wake up', | ||
43 | }, | ||
40 | enableNotification: { | 44 | enableNotification: { |
41 | id: 'settings.service.form.enableNotification', | 45 | id: 'settings.service.form.enableNotification', |
42 | defaultMessage: 'Enable notifications', | 46 | defaultMessage: 'Enable notifications', |
@@ -181,6 +185,11 @@ class EditServiceScreen extends Component { | |||
181 | : service.isHibernationEnabled, | 185 | : service.isHibernationEnabled, |
182 | default: true, | 186 | default: true, |
183 | }, | 187 | }, |
188 | isWakeUpEnabled: { | ||
189 | label: intl.formatMessage(messages.enableWakeUp), | ||
190 | value: service.isWakeUpEnabled, | ||
191 | default: true, | ||
192 | }, | ||
184 | isNotificationEnabled: { | 193 | isNotificationEnabled: { |
185 | label: intl.formatMessage(messages.enableNotification), | 194 | label: intl.formatMessage(messages.enableNotification), |
186 | value: service.isNotificationEnabled, | 195 | value: service.isNotificationEnabled, |