From 91c69428ed0dc2dd26b00c6dd5a6684f25515a34 Mon Sep 17 00:00:00 2001 From: Abin Mn Date: Tue, 26 Oct 2021 21:18:20 +0530 Subject: Cleanup/remove feature toggle for todo, workspace, service proxy (#2134) * Remove DEFAULT_FEATURES_CONFIG from config * Remove static controller Co-authored-by: Madhuri B --- src/stores/FeaturesStore.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/stores/FeaturesStore.js') diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index 8e0134d7f..fdb502b6b 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js @@ -9,13 +9,10 @@ import workspaces from '../features/workspaces'; import quickSwitch from '../features/quickSwitch'; import nightlyBuilds from '../features/nightlyBuilds'; import publishDebugInfo from '../features/publishDebugInfo'; -import settingsWS from '../features/settingsWS'; import communityRecipes from '../features/communityRecipes'; import todos from '../features/todos'; import appearance from '../features/appearance'; -import { DEFAULT_FEATURES_CONFIG } from '../config'; - export default class FeaturesStore extends Store { @observable defaultFeaturesRequest = new CachedRequest( this.api.features, @@ -27,7 +24,7 @@ export default class FeaturesStore extends Store { 'features', ); - @observable features = { ...DEFAULT_FEATURES_CONFIG }; + @observable features = { }; async setup() { this.registerReactions([ @@ -41,12 +38,12 @@ export default class FeaturesStore extends Store { @computed get anonymousFeatures() { return ( - this.defaultFeaturesRequest.execute().result || DEFAULT_FEATURES_CONFIG + this.defaultFeaturesRequest.execute().result || {} ); } _updateFeatures = () => { - const features = { ...DEFAULT_FEATURES_CONFIG }; + const features = { }; if (this.stores.user.isLoggedIn) { let requestResult = {}; try { @@ -77,7 +74,6 @@ export default class FeaturesStore extends Store { quickSwitch(); nightlyBuilds(); publishDebugInfo(); - settingsWS(this.stores, this.actions); communityRecipes(this.stores, this.actions); todos(this.stores, this.actions); appearance(this.stores); -- cgit v1.2.3-54-g00ecf