diff options
author | 2019-04-15 17:41:44 +0200 | |
---|---|---|
committer | 2019-04-15 17:41:44 +0200 | |
commit | 365e22d671613725699ecad0183efff07419e005 (patch) | |
tree | 9936ee23f14c9b53d807751b7a5ba5c13bac96da /src/stores | |
parent | Add services empty state (diff) | |
download | ferdium-app-365e22d671613725699ecad0183efff07419e005.tar.gz ferdium-app-365e22d671613725699ecad0183efff07419e005.tar.zst ferdium-app-365e22d671613725699ecad0183efff07419e005.zip |
Add stats api
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index d04fdd0c5..13f929c2f 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -11,7 +11,7 @@ import Store from './lib/Store'; | |||
11 | import Request from './lib/Request'; | 11 | import Request from './lib/Request'; |
12 | import CachedRequest from './lib/CachedRequest'; | 12 | import CachedRequest from './lib/CachedRequest'; |
13 | import { matchRoute } from '../helpers/routing-helpers'; | 13 | import { matchRoute } from '../helpers/routing-helpers'; |
14 | import { gaEvent } from '../lib/analytics'; | 14 | import { gaEvent, statsEvent } from '../lib/analytics'; |
15 | import { workspaceStore } from '../features/workspaces'; | 15 | import { workspaceStore } from '../features/workspaces'; |
16 | 16 | ||
17 | const debug = require('debug')('Franz:ServiceStore'); | 17 | const debug = require('debug')('Franz:ServiceStore'); |
@@ -299,6 +299,8 @@ export default class ServicesStore extends Store { | |||
299 | }); | 299 | }); |
300 | service.isActive = true; | 300 | service.isActive = true; |
301 | 301 | ||
302 | statsEvent('activate-service', service.recipe.id); | ||
303 | |||
302 | this._focusActiveService(); | 304 | this._focusActiveService(); |
303 | } | 305 | } |
304 | 306 | ||