diff options
Diffstat (limited to 'src/features/serviceLimit')
-rw-r--r-- | src/features/serviceLimit/components/LimitReachedInfobox.js | 3 | ||||
-rw-r--r-- | src/features/serviceLimit/index.js | 2 | ||||
-rw-r--r-- | src/features/serviceLimit/store.js | 9 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/features/serviceLimit/components/LimitReachedInfobox.js b/src/features/serviceLimit/components/LimitReachedInfobox.js index 19285a4eb..83aec4c40 100644 --- a/src/features/serviceLimit/components/LimitReachedInfobox.js +++ b/src/features/serviceLimit/components/LimitReachedInfobox.js | |||
@@ -5,8 +5,6 @@ import { defineMessages, intlShape } from 'react-intl'; | |||
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | import { Infobox } from '@meetfranz/ui'; | 6 | import { Infobox } from '@meetfranz/ui'; |
7 | 7 | ||
8 | import { gaEvent } from '../../../lib/analytics'; | ||
9 | |||
10 | const messages = defineMessages({ | 8 | const messages = defineMessages({ |
11 | limitReached: { | 9 | limitReached: { |
12 | id: 'feature.serviceLimit.limitReached', | 10 | id: 'feature.serviceLimit.limitReached', |
@@ -67,7 +65,6 @@ class LimitReachedInfobox extends Component { | |||
67 | ctaLabel={intl.formatMessage(messages.action)} | 65 | ctaLabel={intl.formatMessage(messages.action)} |
68 | ctaOnClick={() => { | 66 | ctaOnClick={() => { |
69 | actions.ui.openSettings({ path: 'user' }); | 67 | actions.ui.openSettings({ path: 'user' }); |
70 | gaEvent('Service Limit', 'upgrade', 'Upgrade account'); | ||
71 | }} | 68 | }} |
72 | > | 69 | > |
73 | {intl.formatMessage(messages.limitReached, { amount: serviceLimit.serviceCount, limit: serviceLimit.serviceLimit })} | 70 | {intl.formatMessage(messages.limitReached, { amount: serviceLimit.serviceCount, limit: serviceLimit.serviceLimit })} |
diff --git a/src/features/serviceLimit/index.js b/src/features/serviceLimit/index.js index 92ad8bb98..fa93bb615 100644 --- a/src/features/serviceLimit/index.js +++ b/src/features/serviceLimit/index.js | |||
@@ -1,7 +1,7 @@ | |||
1 | import { reaction } from 'mobx'; | 1 | import { reaction } from 'mobx'; |
2 | import { ServiceLimitStore } from './store'; | 2 | import { ServiceLimitStore } from './store'; |
3 | 3 | ||
4 | const debug = require('debug')('Franz:feature:serviceLimit'); | 4 | const debug = require('debug')('Ferdi:feature:serviceLimit'); |
5 | 5 | ||
6 | export const DEFAULT_SERVICE_LIMIT = 3; | 6 | export const DEFAULT_SERVICE_LIMIT = 3; |
7 | 7 | ||
diff --git a/src/features/serviceLimit/store.js b/src/features/serviceLimit/store.js index 9836c5f51..6510e2872 100644 --- a/src/features/serviceLimit/store.js +++ b/src/features/serviceLimit/store.js | |||
@@ -2,7 +2,7 @@ import { computed, observable } from 'mobx'; | |||
2 | import { FeatureStore } from '../utils/FeatureStore'; | 2 | import { FeatureStore } from '../utils/FeatureStore'; |
3 | import { DEFAULT_SERVICE_LIMIT } from '.'; | 3 | import { DEFAULT_SERVICE_LIMIT } from '.'; |
4 | 4 | ||
5 | const debug = require('debug')('Franz:feature:serviceLimit:store'); | 5 | const debug = require('debug')('Ferdi:feature:serviceLimit:store'); |
6 | 6 | ||
7 | export class ServiceLimitStore extends FeatureStore { | 7 | export class ServiceLimitStore extends FeatureStore { |
8 | @observable isServiceLimitEnabled = false; | 8 | @observable isServiceLimitEnabled = false; |
@@ -12,7 +12,7 @@ export class ServiceLimitStore extends FeatureStore { | |||
12 | this.stores = stores; | 12 | this.stores = stores; |
13 | this.actions = actions; | 13 | this.actions = actions; |
14 | 14 | ||
15 | this.isServiceLimitEnabled = true; | 15 | this.isServiceLimitEnabled = false; |
16 | } | 16 | } |
17 | 17 | ||
18 | stop() { | 18 | stop() { |
@@ -22,9 +22,10 @@ export class ServiceLimitStore extends FeatureStore { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | @computed get userHasReachedServiceLimit() { | 24 | @computed get userHasReachedServiceLimit() { |
25 | if (!this.isServiceLimitEnabled) return false; | 25 | return false; |
26 | // if (!this.isServiceLimitEnabled) return false; | ||
26 | 27 | ||
27 | return this.serviceLimit !== 0 && this.serviceCount >= this.serviceLimit; | 28 | // return this.serviceLimit !== 0 && this.serviceCount >= this.serviceLimit; |
28 | } | 29 | } |
29 | 30 | ||
30 | @computed get serviceLimit() { | 31 | @computed get serviceLimit() { |