From 45373f655f68fdd0b320cde175b6108454ad4731 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 17 Jul 2021 20:32:22 +0530 Subject: Removed Franz paid plans features: - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription. --- src/stores/FeaturesStore.js | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/stores/FeaturesStore.js') diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index 2fee9bdda..ac623c258 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js @@ -1,15 +1,12 @@ import { computed, observable, - reaction, runInAction, } from 'mobx'; import Store from './lib/Store'; import CachedRequest from './lib/CachedRequest'; -import delayApp from '../features/delayApp'; -import spellchecker from '../features/spellchecker'; import serviceProxy from '../features/serviceProxy'; import basicAuth from '../features/basicAuth'; import workspaces from '../features/workspaces'; @@ -19,12 +16,9 @@ import publishDebugInfo from '../features/publishDebugInfo'; import shareFranz from '../features/shareFranz'; import announcements from '../features/announcements'; import settingsWS from '../features/settingsWS'; -import serviceLimit from '../features/serviceLimit'; import communityRecipes from '../features/communityRecipes'; import todos from '../features/todos'; import appearance from '../features/appearance'; -import planSelection from '../features/planSelection'; -import trialStatusBar from '../features/trialStatusBar'; import { DEFAULT_FEATURES_CONFIG } from '../config'; @@ -43,13 +37,6 @@ export default class FeaturesStore extends Store { await this.featuresRequest._promise; setTimeout(this._setupFeatures.bind(this), 1); - - // single key reaction - reaction(() => this.stores.user.data.isPremium, () => { - if (this.stores.user.isLoggedIn) { - this.featuresRequest.invalidate({ immediately: true }); - } - }); } @computed get anonymousFeatures() { @@ -80,8 +67,6 @@ export default class FeaturesStore extends Store { } _setupFeatures() { - delayApp(this.stores, this.actions); - spellchecker(this.stores, this.actions); serviceProxy(this.stores, this.actions); basicAuth(this.stores, this.actions); workspaces(this.stores, this.actions); @@ -91,11 +76,8 @@ export default class FeaturesStore extends Store { shareFranz(this.stores, this.actions); announcements(this.stores, this.actions); settingsWS(this.stores, this.actions); - serviceLimit(this.stores, this.actions); communityRecipes(this.stores, this.actions); todos(this.stores, this.actions); appearance(this.stores, this.actions); - planSelection(this.stores, this.actions); - trialStatusBar(this.stores, this.actions); } } -- cgit v1.2.3-54-g00ecf