aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/settings/EditSettingsForm.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js
index f41c7db8e..33822ec5d 100644
--- a/src/components/settings/settings/EditSettingsForm.js
+++ b/src/components/settings/settings/EditSettingsForm.js
@@ -14,6 +14,10 @@ import Input from '../../ui/Input';
14import { FRANZ_TRANSLATION } from '../../../config'; 14import { FRANZ_TRANSLATION } from '../../../config';
15import { isMac } from '../../../environment'; 15import { isMac } from '../../../environment';
16 16
17const {
18 systemPreferences,
19} = remote;
20
17function escapeHtml(unsafe) { 21function escapeHtml(unsafe) {
18 return unsafe 22 return unsafe
19 .replace(/&/g, '&') 23 .replace(/&/g, '&')
@@ -355,6 +359,10 @@ export default @observer class EditSettingsForm extends Component {
355 <Toggle field={form.$('lockingFeatureEnabled')} /> 359 <Toggle field={form.$('lockingFeatureEnabled')} />
356 {lockingFeatureEnabled && ( 360 {lockingFeatureEnabled && (
357 <> 361 <>
362 {systemPreferences.canPromptTouchID() && (
363 <Toggle field={form.$('useTouchIdToUnlock')} />
364 )}
365
358 <Input 366 <Input
359 placeholder={intl.formatMessage(messages.lockedPassword)} 367 placeholder={intl.formatMessage(messages.lockedPassword)}
360 onChange={e => this.submit(e)} 368 onChange={e => this.submit(e)}