aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stores/FeaturesStore.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js
index 9480e27ab..10c893d3f 100644
--- a/src/stores/FeaturesStore.js
+++ b/src/stores/FeaturesStore.js
@@ -22,12 +22,16 @@ export default class FeaturesStore extends Store {
22 setTimeout(this._enableFeatures.bind(this), 1); 22 setTimeout(this._enableFeatures.bind(this), 1);
23 } 23 }
24 24
25 @computed get anonymousFeatures() {
26 return this.defaultFeaturesRequest.execute().result || DEFAULT_FEATURES_CONFIG;
27 }
28
25 @computed get features() { 29 @computed get features() {
26 if (this.stores.user.isLoggedIn) { 30 if (this.stores.user.isLoggedIn) {
27 return this.featuresRequest.execute().result || DEFAULT_FEATURES_CONFIG; 31 return this.featuresRequest.execute().result || DEFAULT_FEATURES_CONFIG;
28 } 32 }
29 33
30 return this.defaultFeaturesRequest.execute().result || DEFAULT_FEATURES_CONFIG; 34 return DEFAULT_FEATURES_CONFIG;
31 } 35 }
32 36
33 _monitorLoginStatus() { 37 _monitorLoginStatus() {