diff options
author | 2021-10-26 21:18:20 +0530 | |
---|---|---|
committer | 2021-10-26 21:18:20 +0530 | |
commit | 91c69428ed0dc2dd26b00c6dd5a6684f25515a34 (patch) | |
tree | 062a9a4946aa1367263533682ee59e795ea97234 /src/containers/settings/EditSettingsScreen.js | |
parent | Add feature to display service name under service icon when the toggle for it... (diff) | |
download | ferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.tar.gz ferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.tar.zst ferdium-app-91c69428ed0dc2dd26b00c6dd5a6684f25515a34.zip |
Cleanup/remove feature toggle for todo, workspace, service proxy (#2134)
* Remove DEFAULT_FEATURES_CONFIG from config
* Remove static controller
Co-authored-by: Madhuri B <MadhuriBandanadam@users.noreply.github.com>
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 76c525045..64f5b2e01 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -339,14 +339,12 @@ class EditSettingsScreen extends Component { | |||
339 | }, | 339 | }, |
340 | }); | 340 | }); |
341 | 341 | ||
342 | if (workspaces.isFeatureActive) { | 342 | const { keepAllWorkspacesLoaded } = workspaces.settings; |
343 | const { keepAllWorkspacesLoaded } = workspaces.settings; | 343 | if ( |
344 | if ( | 344 | Boolean(keepAllWorkspacesLoaded) !== |
345 | Boolean(keepAllWorkspacesLoaded) !== | 345 | Boolean(settingsData.keepAllWorkspacesLoaded) |
346 | Boolean(settingsData.keepAllWorkspacesLoaded) | 346 | ) { |
347 | ) { | 347 | workspaceActions.toggleKeepAllWorkspacesLoadedSetting(); |
348 | workspaceActions.toggleKeepAllWorkspacesLoadedSetting(); | ||
349 | } | ||
350 | } | 348 | } |
351 | 349 | ||
352 | if (todos.isFeatureActive) { | 350 | if (todos.isFeatureActive) { |
@@ -696,7 +694,7 @@ class EditSettingsScreen extends Component { | |||
696 | } | 694 | } |
697 | 695 | ||
698 | render() { | 696 | render() { |
699 | const { app, todos, workspaces, services } = this.props.stores; | 697 | const { app, services } = this.props.stores; |
700 | const { | 698 | const { |
701 | updateStatus, | 699 | updateStatus, |
702 | updateStatusTypes, | 700 | updateStatusTypes, |
@@ -721,8 +719,6 @@ class EditSettingsScreen extends Component { | |||
721 | getCacheSize={() => app.cacheSize} | 719 | getCacheSize={() => app.cacheSize} |
722 | isClearingAllCache={isClearingAllCache} | 720 | isClearingAllCache={isClearingAllCache} |
723 | onClearAllCache={clearAllCache} | 721 | onClearAllCache={clearAllCache} |
724 | isTodosEnabled={todos.isFeatureActive} | ||
725 | isWorkspaceEnabled={workspaces.isFeatureActive} | ||
726 | lockingFeatureEnabled={lockingFeatureEnabled} | 722 | lockingFeatureEnabled={lockingFeatureEnabled} |
727 | automaticUpdates={this.props.stores.settings.app.automaticUpdates} | 723 | automaticUpdates={this.props.stores.settings.app.automaticUpdates} |
728 | isDarkmodeEnabled={this.props.stores.settings.app.darkMode} | 724 | isDarkmodeEnabled={this.props.stores.settings.app.darkMode} |