From 11989902f7028289ed4a6fc30bce29161efa05d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 7 May 2018 07:15:57 +0200 Subject: [PATCH] Add developerMode settings --- src/components/SettingsPage/sections/Profile.js | 12 ++++++++++++ src/reducers/settings.js | 4 ++++ src/types/common.js | 1 + static/i18n/en/settings.yml | 2 ++ 4 files changed, 19 insertions(+) diff --git a/src/components/SettingsPage/sections/Profile.js b/src/components/SettingsPage/sections/Profile.js index 8f210275..f3d96a45 100644 --- a/src/components/SettingsPage/sections/Profile.js +++ b/src/components/SettingsPage/sections/Profile.js @@ -95,6 +95,12 @@ class TabProfile extends PureComponent { } } + handleDeveloperMode = developerMode => { + this.props.saveSettings({ + developerMode, + }) + } + render() { const { t, settings } = this.props const { @@ -121,6 +127,12 @@ class TabProfile extends PureComponent { + + +