aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index b5423af3b..9e7951637 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -7,7 +7,6 @@ import { isDevMode } from '../environment';
7import Store from './lib/Store'; 7import Store from './lib/Store';
8import Request from './lib/Request'; 8import Request from './lib/Request';
9import CachedRequest from './lib/CachedRequest'; 9import CachedRequest from './lib/CachedRequest';
10import { gaEvent } from '../lib/analytics';
11 10
12const debug = require('debug')('Franz:UserStore'); 11const debug = require('debug')('Franz:UserStore');
13 12
@@ -156,16 +155,12 @@ export default class UserStore extends Store {
156 this._setUserData(authToken); 155 this._setUserData(authToken);
157 156
158 this.stores.router.push('/'); 157 this.stores.router.push('/');
159
160 gaEvent('User', 'login');
161 } 158 }
162 159
163 @action _tokenLogin(authToken) { 160 @action _tokenLogin(authToken) {
164 this._setUserData(authToken); 161 this._setUserData(authToken);
165 162
166 this.stores.router.push('/'); 163 this.stores.router.push('/');
167
168 gaEvent('User', 'tokenLogin');
169 } 164 }
170 165
171 @action async _signup({ 166 @action async _signup({
@@ -186,8 +181,6 @@ export default class UserStore extends Store {
186 this._setUserData(authToken); 181 this._setUserData(authToken);
187 182
188 this.stores.router.push(this.PRICING_ROUTE); 183 this.stores.router.push(this.PRICING_ROUTE);
189
190 gaEvent('User', 'signup');
191 } 184 }
192 185
193 @action async _retrievePassword({ email }) { 186 @action async _retrievePassword({ email }) {
@@ -195,8 +188,6 @@ export default class UserStore extends Store {
195 188
196 await request._promise; 189 await request._promise;
197 this.actionStatus = request.result.status || []; 190 this.actionStatus = request.result.status || [];
198
199 gaEvent('User', 'retrievePassword');
200 } 191 }
201 192
202 @action async _invite({ invites }) { 193 @action async _invite({ invites }) {
@@ -210,8 +201,6 @@ export default class UserStore extends Store {
210 if (this.stores.router.location.pathname.includes(this.INVITE_ROUTE)) { 201 if (this.stores.router.location.pathname.includes(this.INVITE_ROUTE)) {
211 this.stores.router.push('/'); 202 this.stores.router.push('/');
212 } 203 }
213
214 gaEvent('User', 'inviteUsers');
215 } 204 }
216 205
217 @action async _update({ userData }) { 206 @action async _update({ userData }) {
@@ -221,8 +210,6 @@ export default class UserStore extends Store {
221 210
222 this.getUserInfoRequest.patch(() => response.data); 211 this.getUserInfoRequest.patch(() => response.data);
223 this.actionStatus = response.status || []; 212 this.actionStatus = response.status || [];
224
225 gaEvent('User', 'update');
226 } 213 }
227 214
228 @action _resetStatus() { 215 @action _resetStatus() {