diff options
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index aa4de78e9..c92ad4df0 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -78,6 +78,10 @@ const messages = defineMessages({ | |||
78 | id: 'settings.app.form.lockPassword', | 78 | id: 'settings.app.form.lockPassword', |
79 | defaultMessage: '!!!Password', | 79 | defaultMessage: '!!!Password', |
80 | }, | 80 | }, |
81 | inactivityLock: { | ||
82 | id: 'settings.app.form.inactivityLock', | ||
83 | defaultMessage: '!!!Lock after inactivity', | ||
84 | }, | ||
81 | scheduledDNDEnabled: { | 85 | scheduledDNDEnabled: { |
82 | id: 'settings.app.form.scheduledDNDEnabled', | 86 | id: 'settings.app.form.scheduledDNDEnabled', |
83 | defaultMessage: '!!!Enable scheduled Do-not-Disturb', | 87 | defaultMessage: '!!!Enable scheduled Do-not-Disturb', |
@@ -178,6 +182,7 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
178 | todoServer: settingsData.todoServer, | 182 | todoServer: settingsData.todoServer, |
179 | lockingFeatureEnabled: settingsData.lockingFeatureEnabled, | 183 | lockingFeatureEnabled: settingsData.lockingFeatureEnabled, |
180 | lockedPassword: settingsData.lockedPassword, | 184 | lockedPassword: settingsData.lockedPassword, |
185 | inactivityLock: settingsData.inactivityLock, | ||
181 | scheduledDNDEnabled: settingsData.scheduledDNDEnabled, | 186 | scheduledDNDEnabled: settingsData.scheduledDNDEnabled, |
182 | scheduledDNDStart: settingsData.scheduledDNDStart, | 187 | scheduledDNDStart: settingsData.scheduledDNDStart, |
183 | scheduledDNDEnd: settingsData.scheduledDNDEnd, | 188 | scheduledDNDEnd: settingsData.scheduledDNDEnd, |
@@ -312,6 +317,12 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
312 | default: '', | 317 | default: '', |
313 | type: 'password', | 318 | type: 'password', |
314 | }, | 319 | }, |
320 | inactivityLock: { | ||
321 | label: intl.formatMessage(messages.inactivityLock), | ||
322 | value: settings.all.app.inactivityLock, | ||
323 | default: 0, | ||
324 | type: 'number', | ||
325 | }, | ||
315 | scheduledDNDEnabled: { | 326 | scheduledDNDEnabled: { |
316 | label: intl.formatMessage(messages.scheduledDNDEnabled), | 327 | label: intl.formatMessage(messages.scheduledDNDEnabled), |
317 | value: settings.all.app.scheduledDNDEnabled || false, | 328 | value: settings.all.app.scheduledDNDEnabled || false, |