diff options
author | 2024-04-18 07:32:48 +0100 | |
---|---|---|
committer | 2024-04-18 07:32:48 +0100 | |
commit | 101a18cd41f53b62c77d16442db955855f1f2703 (patch) | |
tree | 3a0d0475647ad8c018126a8f127e8bf6c7774ce9 /src/containers/settings | |
parent | Remove pnpm cache (since its suspected that sqlite cache is corrupted) (#1703) (diff) | |
download | ferdium-app-101a18cd41f53b62c77d16442db955855f1f2703.tar.gz ferdium-app-101a18cd41f53b62c77d16442db955855f1f2703.tar.zst ferdium-app-101a18cd41f53b62c77d16442db955855f1f2703.zip |
feat: hide all services workspace (#1713)
* feat: hide all services workspace
* fix: change from 'show' to 'hide'
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index b731ad50a..fdd9bd8bc 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -277,6 +277,10 @@ const messages = defineMessages({ | |||
277 | id: 'settings.app.form.alwaysShowWorkspaces', | 277 | id: 'settings.app.form.alwaysShowWorkspaces', |
278 | defaultMessage: 'Always show workspace drawer', | 278 | defaultMessage: 'Always show workspace drawer', |
279 | }, | 279 | }, |
280 | hideAllServicesWorkspace: { | ||
281 | id: 'settings.app.form.hideAllServicesWorkspace', | ||
282 | defaultMessage: 'Hide "All services" workspace', | ||
283 | }, | ||
280 | accentColor: { | 284 | accentColor: { |
281 | id: 'settings.app.form.accentColor', | 285 | id: 'settings.app.form.accentColor', |
282 | defaultMessage: 'Accent color', | 286 | defaultMessage: 'Accent color', |
@@ -453,6 +457,9 @@ class EditSettingsScreen extends Component< | |||
453 | hideSettingsButton: Boolean(settingsData.hideSettingsButton), | 457 | hideSettingsButton: Boolean(settingsData.hideSettingsButton), |
454 | hideDownloadButton: Boolean(settingsData.hideDownloadButton), | 458 | hideDownloadButton: Boolean(settingsData.hideDownloadButton), |
455 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), | 459 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), |
460 | hideAllServicesWorkspace: Boolean( | ||
461 | settingsData.hideAllServicesWorkspace, | ||
462 | ), | ||
456 | accentColor: settingsData.accentColor, | 463 | accentColor: settingsData.accentColor, |
457 | progressbarAccentColor: settingsData.progressbarAccentColor, | 464 | progressbarAccentColor: settingsData.progressbarAccentColor, |
458 | showMessageBadgeWhenMuted: Boolean( | 465 | showMessageBadgeWhenMuted: Boolean( |
@@ -1155,6 +1162,15 @@ class EditSettingsScreen extends Component< | |||
1155 | default: DEFAULT_APP_SETTINGS.alwaysShowWorkspaces, | 1162 | default: DEFAULT_APP_SETTINGS.alwaysShowWorkspaces, |
1156 | type: 'checkbox', | 1163 | type: 'checkbox', |
1157 | }, | 1164 | }, |
1165 | hideAllServicesWorkspace: { | ||
1166 | label: intl.formatMessage(messages.hideAllServicesWorkspace), | ||
1167 | value: ifUndefined<boolean>( | ||
1168 | settings.all.app.hideAllServicesWorkspace, | ||
1169 | DEFAULT_APP_SETTINGS.hideAllServicesWorkspace, | ||
1170 | ), | ||
1171 | default: DEFAULT_APP_SETTINGS.hideAllServicesWorkspace, | ||
1172 | type: 'checkbox', | ||
1173 | }, | ||
1158 | accentColor: { | 1174 | accentColor: { |
1159 | label: intl.formatMessage(messages.accentColor), | 1175 | label: intl.formatMessage(messages.accentColor), |
1160 | value: ifUndefined<string>( | 1176 | value: ifUndefined<string>( |