diff options
author | 2021-10-26 20:37:56 +0530 | |
---|---|---|
committer | 2021-10-26 20:37:56 +0530 | |
commit | 955f2abeb2c093515e6dd0026b4072145a2be6b6 (patch) | |
tree | 265497cf116ccf1d11fb869a95fcabcf0baacf18 /src/containers/settings | |
parent | docs: add Vishnu017 as a contributor for code (#2142) [skip ci] (diff) | |
download | ferdium-app-955f2abeb2c093515e6dd0026b4072145a2be6b6.tar.gz ferdium-app-955f2abeb2c093515e6dd0026b4072145a2be6b6.tar.zst ferdium-app-955f2abeb2c093515e6dd0026b4072145a2be6b6.zip |
Add feature to display service name under service icon when the toggle for it is enabled in the settings (#2136)
Co-authored-by: AnjithPaul <anjithpaul.mec@gmail.com>
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index de0714870..76c525045 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -197,6 +197,10 @@ const messages = defineMessages({ | |||
197 | id: 'settings.app.form.showDisabledServices', | 197 | id: 'settings.app.form.showDisabledServices', |
198 | defaultMessage: 'Display disabled services tabs', | 198 | defaultMessage: 'Display disabled services tabs', |
199 | }, | 199 | }, |
200 | showServiceName: { | ||
201 | id: 'settings.app.form.showServiceName', | ||
202 | defaultMessage: 'Display service name under the icon', | ||
203 | }, | ||
200 | showMessageBadgeWhenMuted: { | 204 | showMessageBadgeWhenMuted: { |
201 | id: 'settings.app.form.showMessagesBadgesWhenMuted', | 205 | id: 'settings.app.form.showMessagesBadgesWhenMuted', |
202 | defaultMessage: 'Show unread message badge when notifications are disabled', | 206 | defaultMessage: 'Show unread message badge when notifications are disabled', |
@@ -301,6 +305,7 @@ class EditSettingsScreen extends Component { | |||
301 | settingsData.enableGlobalHideShortcut, | 305 | settingsData.enableGlobalHideShortcut, |
302 | ), | 306 | ), |
303 | showDisabledServices: Boolean(settingsData.showDisabledServices), | 307 | showDisabledServices: Boolean(settingsData.showDisabledServices), |
308 | showServiceName: Boolean(settingsData.showServiceName), | ||
304 | darkMode: Boolean(settingsData.darkMode), | 309 | darkMode: Boolean(settingsData.darkMode), |
305 | adaptableDarkMode: Boolean(settingsData.adaptableDarkMode), | 310 | adaptableDarkMode: Boolean(settingsData.adaptableDarkMode), |
306 | universalDarkMode: Boolean(settingsData.universalDarkMode), | 311 | universalDarkMode: Boolean(settingsData.universalDarkMode), |
@@ -558,6 +563,11 @@ class EditSettingsScreen extends Component { | |||
558 | value: settings.all.app.showDisabledServices, | 563 | value: settings.all.app.showDisabledServices, |
559 | default: DEFAULT_APP_SETTINGS.showDisabledServices, | 564 | default: DEFAULT_APP_SETTINGS.showDisabledServices, |
560 | }, | 565 | }, |
566 | showServiceName: { | ||
567 | label: intl.formatMessage(messages.showServiceName), | ||
568 | value: settings.all.app.showServiceName, | ||
569 | default: DEFAULT_APP_SETTINGS.showServiceName, | ||
570 | }, | ||
561 | showMessageBadgeWhenMuted: { | 571 | showMessageBadgeWhenMuted: { |
562 | label: intl.formatMessage(messages.showMessageBadgeWhenMuted), | 572 | label: intl.formatMessage(messages.showMessageBadgeWhenMuted), |
563 | value: settings.all.app.showMessageBadgeWhenMuted, | 573 | value: settings.all.app.showMessageBadgeWhenMuted, |