diff options
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index bb4f4a76f..4fd1f99ef 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -94,6 +94,10 @@ const messages = defineMessages({ | |||
94 | id: 'settings.service.form.isMutedInfo', | 94 | id: 'settings.service.form.isMutedInfo', |
95 | defaultMessage: '!!!When disabled, all notification sounds and audio playback are muted', | 95 | defaultMessage: '!!!When disabled, all notification sounds and audio playback are muted', |
96 | }, | 96 | }, |
97 | disableHibernationInfo: { | ||
98 | id: 'settings.service.form.disableHibernationInfo', | ||
99 | defaultMessage: '!!!You currently have hibernation enabled but you can disable hibernation for individual services using this option.', | ||
100 | }, | ||
97 | headlineNotifications: { | 101 | headlineNotifications: { |
98 | id: 'settings.service.form.headlineNotifications', | 102 | id: 'settings.service.form.headlineNotifications', |
99 | defaultMessage: '!!!Notifications', | 103 | defaultMessage: '!!!Notifications', |
@@ -154,6 +158,7 @@ export default @observer class EditServiceForm extends Component { | |||
154 | isProxyFeatureEnabled: PropTypes.bool.isRequired, | 158 | isProxyFeatureEnabled: PropTypes.bool.isRequired, |
155 | isServiceProxyIncludedInCurrentPlan: PropTypes.bool.isRequired, | 159 | isServiceProxyIncludedInCurrentPlan: PropTypes.bool.isRequired, |
156 | isSpellcheckerIncludedInCurrentPlan: PropTypes.bool.isRequired, | 160 | isSpellcheckerIncludedInCurrentPlan: PropTypes.bool.isRequired, |
161 | isHibernationFeatureActive: PropTypes.bool.isRequired, | ||
157 | }; | 162 | }; |
158 | 163 | ||
159 | static defaultProps = { | 164 | static defaultProps = { |
@@ -219,6 +224,7 @@ export default @observer class EditServiceForm extends Component { | |||
219 | isProxyFeatureEnabled, | 224 | isProxyFeatureEnabled, |
220 | isServiceProxyIncludedInCurrentPlan, | 225 | isServiceProxyIncludedInCurrentPlan, |
221 | isSpellcheckerIncludedInCurrentPlan, | 226 | isSpellcheckerIncludedInCurrentPlan, |
227 | isHibernationFeatureActive, | ||
222 | } = this.props; | 228 | } = this.props; |
223 | const { intl } = this.context; | 229 | const { intl } = this.context; |
224 | 230 | ||
@@ -365,6 +371,14 @@ export default @observer class EditServiceForm extends Component { | |||
365 | <div className="settings__settings-group"> | 371 | <div className="settings__settings-group"> |
366 | <h3>{intl.formatMessage(messages.headlineGeneral)}</h3> | 372 | <h3>{intl.formatMessage(messages.headlineGeneral)}</h3> |
367 | <Toggle field={form.$('isEnabled')} /> | 373 | <Toggle field={form.$('isEnabled')} /> |
374 | {isHibernationFeatureActive && ( | ||
375 | <> | ||
376 | <Toggle field={form.$('disableHibernation')} /> | ||
377 | <p className="settings__help"> | ||
378 | {intl.formatMessage(messages.disableHibernationInfo)} | ||
379 | </p> | ||
380 | </> | ||
381 | )} | ||
368 | <Toggle field={form.$('isDarkModeEnabled')} /> | 382 | <Toggle field={form.$('isDarkModeEnabled')} /> |
369 | {form.$('isDarkModeEnabled').value | 383 | {form.$('isDarkModeEnabled').value |
370 | && ( | 384 | && ( |