diff options
author | 2017-11-14 21:04:41 +0100 | |
---|---|---|
committer | 2017-11-14 21:04:41 +0100 | |
commit | dcab45a323f53a10ff5f419daa5ba6442817eebc (patch) | |
tree | b9212d00a8c3a088292180d72895dfeef3536ed1 /src/components/settings | |
parent | [wip] share user settings with service (diff) | |
download | ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.tar.gz ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.tar.zst ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.zip |
feat(App): Add option to enable/disable spell checker
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 1 | ||||
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 33 |
2 files changed, 24 insertions, 10 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index 3b21a7765..fea8d682d 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -74,7 +74,6 @@ export default class SettingsNavigation extends Component { | |||
74 | <Link | 74 | <Link |
75 | to="/auth/logout" | 75 | to="/auth/logout" |
76 | className="settings-navigation__link" | 76 | className="settings-navigation__link" |
77 | activeClassName="is-active" | ||
78 | > | 77 | > |
79 | {intl.formatMessage(messages.logout)} | 78 | {intl.formatMessage(messages.logout)} |
80 | </Link> | 79 | </Link> |
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index e711ad402..601d57c81 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -30,9 +30,9 @@ const messages = defineMessages({ | |||
30 | id: 'settings.app.headlineAppearance', | 30 | id: 'settings.app.headlineAppearance', |
31 | defaultMessage: '!!!Appearance', | 31 | defaultMessage: '!!!Appearance', |
32 | }, | 32 | }, |
33 | headlineMessaging: { | 33 | headlineAdvanced: { |
34 | id: 'settings.app.headlineMessaging', | 34 | id: 'settings.app.headlineAdvanced', |
35 | defaultMessage: '!!!Messaging', | 35 | defaultMessage: '!!!Advanced', |
36 | }, | 36 | }, |
37 | buttonSearchForUpdate: { | 37 | buttonSearchForUpdate: { |
38 | id: 'settings.app.buttonSearchForUpdate', | 38 | id: 'settings.app.buttonSearchForUpdate', |
@@ -58,6 +58,10 @@ const messages = defineMessages({ | |||
58 | id: 'settings.app.currentVersion', | 58 | id: 'settings.app.currentVersion', |
59 | defaultMessage: '!!!Current version:', | 59 | defaultMessage: '!!!Current version:', |
60 | }, | 60 | }, |
61 | restartRequired: { | ||
62 | id: 'settings.app.restartRequired', | ||
63 | defaultMessage: '!!!Changes require restart', | ||
64 | }, | ||
61 | }); | 65 | }); |
62 | 66 | ||
63 | @observer | 67 | @observer |
@@ -120,20 +124,31 @@ export default class EditSettingsForm extends Component { | |||
120 | onChange={e => this.submit(e)} | 124 | onChange={e => this.submit(e)} |
121 | id="form" | 125 | id="form" |
122 | > | 126 | > |
123 | <h2>{intl.formatMessage(messages.headlineGeneral)}</h2> | 127 | {/* General */} |
128 | <h2 id="general">{intl.formatMessage(messages.headlineGeneral)}</h2> | ||
124 | <Toggle field={form.$('autoLaunchOnStart')} /> | 129 | <Toggle field={form.$('autoLaunchOnStart')} /> |
125 | <Toggle field={form.$('runInBackground')} /> | 130 | <Toggle field={form.$('runInBackground')} /> |
126 | <Toggle field={form.$('enableSystemTray')} /> | 131 | <Toggle field={form.$('enableSystemTray')} /> |
127 | {process.platform === 'win32' && ( | 132 | {process.platform === 'win32' && ( |
128 | <Toggle field={form.$('minimizeToSystemTray')} /> | 133 | <Toggle field={form.$('minimizeToSystemTray')} /> |
129 | )} | 134 | )} |
130 | <h2>{intl.formatMessage(messages.headlineAppearance)}</h2> | 135 | |
136 | {/* Appearance */} | ||
137 | <h2 id="apperance">{intl.formatMessage(messages.headlineAppearance)}</h2> | ||
131 | <Toggle field={form.$('showDisabledServices')} /> | 138 | <Toggle field={form.$('showDisabledServices')} /> |
132 | <h2>{intl.formatMessage(messages.headlineMessaging)}</h2> | 139 | |
133 | <Toggle field={form.$('enableSpellchecking')} /> | 140 | {/* Language */} |
134 | <h2>{intl.formatMessage(messages.headlineLanguage)}</h2> | 141 | <h2 id="language">{intl.formatMessage(messages.headlineLanguage)}</h2> |
135 | <Select field={form.$('locale')} showLabel={false} /> | 142 | <Select field={form.$('locale')} showLabel={false} /> |
136 | <h2>{intl.formatMessage(messages.headlineUpdates)}</h2> | 143 | |
144 | {/* Advanced */} | ||
145 | <h2 id="advanced">{intl.formatMessage(messages.headlineAdvanced)}</h2> | ||
146 | <Toggle field={form.$('enableSpellchecking')} /> | ||
147 | <p className="settings__help">{intl.formatMessage(messages.restartRequired)}</p> | ||
148 | {/* <Select field={form.$('spellcheckingLanguage')} /> */} | ||
149 | |||
150 | {/* Updates */} | ||
151 | <h2 id="updates">{intl.formatMessage(messages.headlineUpdates)}</h2> | ||
137 | {updateIsReadyToInstall ? ( | 152 | {updateIsReadyToInstall ? ( |
138 | <Button | 153 | <Button |
139 | label={intl.formatMessage(messages.buttonInstallUpdate)} | 154 | label={intl.formatMessage(messages.buttonInstallUpdate)} |