aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/store.js
diff options
context:
space:
mode:
authorLibravatar Abin Mn <abinmn619@gmail.com>2021-10-26 21:18:20 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-26 21:18:20 +0530
commit91c69428ed0dc2dd26b00c6dd5a6684f25515a34 (patch)
tree062a9a4946aa1367263533682ee59e795ea97234 /src/features/workspaces/store.js
parentAdd feature to display service name under service icon when the toggle for it... (diff)
downloadferdium-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/features/workspaces/store.js')
-rw-r--r--src/features/workspaces/store.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 0fa43b723..17ec17b3a 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -18,8 +18,6 @@ import { KEEP_WS_LOADED_USID } from '../../config';
18const debug = require('debug')('Ferdi:feature:workspaces:store'); 18const debug = require('debug')('Ferdi:feature:workspaces:store');
19 19
20export default class WorkspacesStore extends FeatureStore { 20export default class WorkspacesStore extends FeatureStore {
21 @observable isFeatureEnabled = true;
22
23 @observable isFeatureActive = false; 21 @observable isFeatureActive = false;
24 22
25 @observable activeWorkspace = null; 23 @observable activeWorkspace = null;
@@ -97,7 +95,6 @@ export default class WorkspacesStore extends FeatureStore {
97 95
98 this._allReactions = createReactions([ 96 this._allReactions = createReactions([
99 this._openDrawerWithSettingsReaction, 97 this._openDrawerWithSettingsReaction,
100 this._setFeatureEnabledReaction,
101 this._cleanupInvalidServiceReferences, 98 this._cleanupInvalidServiceReferences,
102 this._setActiveServiceOnWorkspaceSwitchReaction, 99 this._setActiveServiceOnWorkspaceSwitchReaction,
103 this._activateLastUsedWorkspaceReaction, 100 this._activateLastUsedWorkspaceReaction,
@@ -251,11 +248,6 @@ export default class WorkspacesStore extends FeatureStore {
251 248
252 // Reactions 249 // Reactions
253 250
254 _setFeatureEnabledReaction = () => {
255 const { isWorkspaceEnabled } = this.stores.features.features;
256 this.isFeatureEnabled = isWorkspaceEnabled;
257 };
258
259 _setWorkspaceBeingEditedReaction = () => { 251 _setWorkspaceBeingEditedReaction = () => {
260 const { pathname } = this.stores.router.location; 252 const { pathname } = this.stores.router.location;
261 const match = matchRoute('/settings/workspaces/edit/:id', pathname); 253 const match = matchRoute('/settings/workspaces/edit/:id', pathname);