aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/store.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-07 16:12:13 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-07 16:12:13 +0200
commit44a7cfc62d1a1352a9825d172428b12dca44cab0 (patch)
tree15cc743be3347390aa223abfeec3cc2054a23882 /src/features/workspaces/store.js
parentBump version number (diff)
downloadferdium-app-44a7cfc62d1a1352a9825d172428b12dca44cab0.tar.gz
ferdium-app-44a7cfc62d1a1352a9825d172428b12dca44cab0.tar.zst
ferdium-app-44a7cfc62d1a1352a9825d172428b12dca44cab0.zip
Remove service limit and enable workspaces
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r--src/features/workspaces/store.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 4a1f80b4e..bdec530ec 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -20,13 +20,13 @@ import { createActionBindings } from '../utils/ActionBinding';
20const debug = require('debug')('Franz:feature:workspaces:store'); 20const debug = require('debug')('Franz:feature:workspaces:store');
21 21
22export default class WorkspacesStore extends FeatureStore { 22export default class WorkspacesStore extends FeatureStore {
23 @observable isFeatureEnabled = false; 23 @observable isFeatureEnabled = true;
24 24
25 @observable isFeatureActive = false; 25 @observable isFeatureActive = false;
26 26
27 @observable isPremiumFeature = true; 27 @observable isPremiumFeature = false;
28 28
29 @observable isPremiumUpgradeRequired = true; 29 @observable isPremiumUpgradeRequired = false;
30 30
31 @observable activeWorkspace = null; 31 @observable activeWorkspace = null;
32 32
@@ -54,7 +54,8 @@ export default class WorkspacesStore extends FeatureStore {
54 } 54 }
55 55
56 @computed get isUserAllowedToUseFeature() { 56 @computed get isUserAllowedToUseFeature() {
57 return !this.isPremiumUpgradeRequired; 57 return true;
58 // return !this.isPremiumUpgradeRequired;
58 } 59 }
59 60
60 @computed get isAnyWorkspaceActive() { 61 @computed get isAnyWorkspaceActive() {
@@ -253,10 +254,10 @@ export default class WorkspacesStore extends FeatureStore {
253 }; 254 };
254 255
255 _setIsPremiumFeatureReaction = () => { 256 _setIsPremiumFeatureReaction = () => {
256 const { features } = this.stores; 257 // const { features } = this.stores;
257 const { isWorkspaceIncludedInCurrentPlan } = features.features; 258 // const { isWorkspaceIncludedInCurrentPlan } = features.features;
258 this.isPremiumFeature = !isWorkspaceIncludedInCurrentPlan; 259 // this.isPremiumFeature = !isWorkspaceIncludedInCurrentPlan;
259 this.isPremiumUpgradeRequired = !isWorkspaceIncludedInCurrentPlan; 260 // this.isPremiumUpgradeRequired = !isWorkspaceIncludedInCurrentPlan;
260 }; 261 };
261 262
262 _setWorkspaceBeingEditedReaction = () => { 263 _setWorkspaceBeingEditedReaction = () => {