aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 109ac5cd7..4d98df851 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -11,7 +11,6 @@ import Store from './lib/Store';
11import Request from './lib/Request'; 11import Request from './lib/Request';
12import CachedRequest from './lib/CachedRequest'; 12import CachedRequest from './lib/CachedRequest';
13import { matchRoute } from '../helpers/routing-helpers'; 13import { matchRoute } from '../helpers/routing-helpers';
14import { gaEvent, statsEvent } from '../lib/analytics';
15import { workspaceStore } from '../features/workspaces'; 14import { workspaceStore } from '../features/workspaces';
16 15
17const debug = require('debug')('Franz:ServiceStore'); 16const debug = require('debug')('Franz:ServiceStore');
@@ -173,7 +172,6 @@ export default class ServicesStore extends Store {
173 172
174 if (redirect) { 173 if (redirect) {
175 this.stores.router.push('/settings/recipes'); 174 this.stores.router.push('/settings/recipes');
176 gaEvent('Service', 'create', recipeId);
177 } 175 }
178 } 176 }
179 177
@@ -250,7 +248,6 @@ export default class ServicesStore extends Store {
250 248
251 if (redirect) { 249 if (redirect) {
252 this.stores.router.push('/settings/services'); 250 this.stores.router.push('/settings/services');
253 gaEvent('Service', 'update', service.recipe.id);
254 } 251 }
255 } 252 }
256 253
@@ -269,15 +266,12 @@ export default class ServicesStore extends Store {
269 266
270 await request._promise; 267 await request._promise;
271 this.actionStatus = request.result.status; 268 this.actionStatus = request.result.status;
272
273 gaEvent('Service', 'delete', service.recipe.id);
274 } 269 }
275 270
276 @action async _clearCache({ serviceId }) { 271 @action async _clearCache({ serviceId }) {
277 this.clearCacheRequest.reset(); 272 this.clearCacheRequest.reset();
278 const request = this.clearCacheRequest.execute(serviceId); 273 const request = this.clearCacheRequest.execute(serviceId);
279 await request._promise; 274 await request._promise;
280 gaEvent('Service', 'clear cache');
281 } 275 }
282 276
283 @action _setActive({ serviceId, keepActiveRoute }) { 277 @action _setActive({ serviceId, keepActiveRoute }) {
@@ -289,8 +283,6 @@ export default class ServicesStore extends Store {
289 }); 283 });
290 service.isActive = true; 284 service.isActive = true;
291 285
292 statsEvent('activate-service', service.recipe.id);
293
294 this._focusActiveService(); 286 this._focusActiveService();
295 } 287 }
296 288
@@ -536,8 +528,6 @@ export default class ServicesStore extends Store {
536 service.order = services[s.id]; 528 service.order = services[s.id];
537 }); 529 });
538 }); 530 });
539
540 this._reorderAnalytics();
541 } 531 }
542 532
543 @action _toggleNotifications({ serviceId }) { 533 @action _toggleNotifications({ serviceId }) {
@@ -710,10 +700,6 @@ export default class ServicesStore extends Store {
710 } 700 }
711 } 701 }
712 702
713 _reorderAnalytics = debounce(() => {
714 gaEvent('Service', 'order');
715 }, ms('5s'));
716
717 _wrapIndex(index, delta, size) { 703 _wrapIndex(index, delta, size) {
718 return (((index + delta) % size) + size) % size; 704 return (((index + delta) % size) + size) % size;
719 } 705 }