diff options
author | 2018-11-25 23:02:12 +0100 | |
---|---|---|
committer | 2018-11-25 23:02:12 +0100 | |
commit | 0d9c7ff6a638861d54f29bf91c82847cfa62a24c (patch) | |
tree | 1091fc0fe9b498e7b6fa69386ed2586d298d9269 /src/containers | |
parent | Fix delayApp issues (diff) | |
download | ferdium-app-0d9c7ff6a638861d54f29bf91c82847cfa62a24c.tar.gz ferdium-app-0d9c7ff6a638861d54f29bf91c82847cfa62a24c.tar.zst ferdium-app-0d9c7ff6a638861d54f29bf91c82847cfa62a24c.zip |
Move spellchecker to premium
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index df6442eb8..2fb6bed5f 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -10,6 +10,7 @@ import Form from '../../lib/Form'; | |||
10 | import { APP_LOCALES } from '../../i18n/languages'; | 10 | import { APP_LOCALES } from '../../i18n/languages'; |
11 | import { gaPage } from '../../lib/analytics'; | 11 | import { gaPage } from '../../lib/analytics'; |
12 | import { DEFAULT_APP_SETTINGS } from '../../config'; | 12 | import { DEFAULT_APP_SETTINGS } from '../../config'; |
13 | import { config as spellcheckerConfig } from '../../features/spellchecker'; | ||
13 | 14 | ||
14 | 15 | ||
15 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; | 16 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; |
@@ -161,8 +162,8 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
161 | }, | 162 | }, |
162 | enableSpellchecking: { | 163 | enableSpellchecking: { |
163 | label: intl.formatMessage(messages.enableSpellchecking), | 164 | label: intl.formatMessage(messages.enableSpellchecking), |
164 | value: settings.all.app.enableSpellchecking, | 165 | value: !this.props.stores.user.data.isPremium && spellcheckerConfig.isPremiumFeature ? false : settings.all.app.enableSpellchecking, |
165 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, | 166 | default: !this.props.stores.user.data.isPremium && spellcheckerConfig.isPremiumFeature ? false : DEFAULT_APP_SETTINGS.enableSpellchecking, |
166 | }, | 167 | }, |
167 | darkMode: { | 168 | darkMode: { |
168 | label: intl.formatMessage(messages.darkMode), | 169 | label: intl.formatMessage(messages.darkMode), |
@@ -218,6 +219,8 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
218 | cacheSize={cacheSize} | 219 | cacheSize={cacheSize} |
219 | isClearingAllCache={isClearingAllCache} | 220 | isClearingAllCache={isClearingAllCache} |
220 | onClearAllCache={clearAllCache} | 221 | onClearAllCache={clearAllCache} |
222 | isPremiumUser={this.props.stores.user.data.isPremium} | ||
223 | isSpellcheckerPremiumFeature={spellcheckerConfig.isPremiumFeature} | ||
221 | /> | 224 | /> |
222 | ); | 225 | ); |
223 | } | 226 | } |