aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings/settings/EditSettingsForm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings/settings/EditSettingsForm.js')
-rw-r--r--src/components/settings/settings/EditSettingsForm.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js
index 660c3c109..19333fdff 100644
--- a/src/components/settings/settings/EditSettingsForm.js
+++ b/src/components/settings/settings/EditSettingsForm.js
@@ -105,7 +105,8 @@ export default @observer class EditSettingsForm extends Component {
105 isClearingAllCache: PropTypes.bool.isRequired, 105 isClearingAllCache: PropTypes.bool.isRequired,
106 onClearAllCache: PropTypes.func.isRequired, 106 onClearAllCache: PropTypes.func.isRequired,
107 cacheSize: PropTypes.string.isRequired, 107 cacheSize: PropTypes.string.isRequired,
108 isSpellcheckerPremiumFeature: PropTypes.bool.isRequired, 108 isSpellcheckerIncludedInCurrentPlan: PropTypes.bool.isRequired,
109 isTodosEnabled: PropTypes.bool.isRequired,
109 }; 110 };
110 111
111 static contextTypes = { 112 static contextTypes = {
@@ -135,7 +136,8 @@ export default @observer class EditSettingsForm extends Component {
135 isClearingAllCache, 136 isClearingAllCache,
136 onClearAllCache, 137 onClearAllCache,
137 cacheSize, 138 cacheSize,
138 isSpellcheckerPremiumFeature, 139 isSpellcheckerIncludedInCurrentPlan,
140 isTodosEnabled,
139 } = this.props; 141 } = this.props;
140 const { intl } = this.context; 142 const { intl } = this.context;
141 143
@@ -178,6 +180,9 @@ export default @observer class EditSettingsForm extends Component {
178 { isLoggedIn && ( 180 { isLoggedIn && (
179 <p>{ intl.formatMessage(messages.serverInfo) }</p> 181 <p>{ intl.formatMessage(messages.serverInfo) }</p>
180 )} 182 )}
183 {isTodosEnabled && (
184 <Toggle field={form.$('enableTodos')} />
185 )}
181 186
182 {/* Appearance */} 187 {/* Appearance */}
183 <h2 id="apperance">{intl.formatMessage(messages.headlineAppearance)}</h2> 188 <h2 id="apperance">{intl.formatMessage(messages.headlineAppearance)}</h2>
@@ -189,7 +194,7 @@ export default @observer class EditSettingsForm extends Component {
189 <h2 id="language">{intl.formatMessage(messages.headlineLanguage)}</h2> 194 <h2 id="language">{intl.formatMessage(messages.headlineLanguage)}</h2>
190 <Select field={form.$('locale')} showLabel={false} /> 195 <Select field={form.$('locale')} showLabel={false} />
191 <PremiumFeatureContainer 196 <PremiumFeatureContainer
192 condition={isSpellcheckerPremiumFeature} 197 condition={!isSpellcheckerIncludedInCurrentPlan}
193 gaEventInfo={{ category: 'User', event: 'upgrade', label: 'spellchecker' }} 198 gaEventInfo={{ category: 'User', event: 'upgrade', label: 'spellchecker' }}
194 > 199 >
195 <Fragment> 200 <Fragment>