aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-07 00:53:10 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-07 00:53:10 +0200
commit5d03b91dd789ffd6d3d5753c223b4b6412887220 (patch)
treeb48a93aadcd5e77cd4f42d635edc598255286d4f /src/components/settings
parentUpdate CHANGELOG.md (diff)
downloadferdium-app-5d03b91dd789ffd6d3d5753c223b4b6412887220.tar.gz
ferdium-app-5d03b91dd789ffd6d3d5753c223b4b6412887220.tar.zst
ferdium-app-5d03b91dd789ffd6d3d5753c223b4b6412887220.zip
feat(Todos): Add option to disable todos
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/settings/EditSettingsForm.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js
index 3f9e0a6bc..ff30daed2 100644
--- a/src/components/settings/settings/EditSettingsForm.js
+++ b/src/components/settings/settings/EditSettingsForm.js
@@ -101,6 +101,7 @@ export default @observer class EditSettingsForm extends Component {
101 onClearAllCache: PropTypes.func.isRequired, 101 onClearAllCache: PropTypes.func.isRequired,
102 cacheSize: PropTypes.string.isRequired, 102 cacheSize: PropTypes.string.isRequired,
103 isSpellcheckerIncludedInCurrentPlan: PropTypes.bool.isRequired, 103 isSpellcheckerIncludedInCurrentPlan: PropTypes.bool.isRequired,
104 isTodosEnabled: PropTypes.bool.isRequired,
104 }; 105 };
105 106
106 static contextTypes = { 107 static contextTypes = {
@@ -131,6 +132,7 @@ export default @observer class EditSettingsForm extends Component {
131 onClearAllCache, 132 onClearAllCache,
132 cacheSize, 133 cacheSize,
133 isSpellcheckerIncludedInCurrentPlan, 134 isSpellcheckerIncludedInCurrentPlan,
135 isTodosEnabled,
134 } = this.props; 136 } = this.props;
135 const { intl } = this.context; 137 const { intl } = this.context;
136 138
@@ -162,6 +164,9 @@ export default @observer class EditSettingsForm extends Component {
162 {process.platform === 'win32' && ( 164 {process.platform === 'win32' && (
163 <Toggle field={form.$('minimizeToSystemTray')} /> 165 <Toggle field={form.$('minimizeToSystemTray')} />
164 )} 166 )}
167 {isTodosEnabled && (
168 <Toggle field={form.$('enableTodos')} />
169 )}
165 170
166 {/* Appearance */} 171 {/* Appearance */}
167 <h2 id="apperance">{intl.formatMessage(messages.headlineAppearance)}</h2> 172 <h2 id="apperance">{intl.formatMessage(messages.headlineAppearance)}</h2>