Track editor modals.

This commit is contained in:
Paulo Reis 2016-07-05 15:16:55 +01:00
parent 71b8f86e89
commit 304529754d
2 changed files with 4 additions and 2 deletions

View file

@ -2,8 +2,10 @@ define [
"base"
"ace/ace"
], (App) ->
App.controller "HotkeysController", ($scope, $modal) ->
App.controller "HotkeysController", ($scope, $modal, event_tracking) ->
$scope.openHotkeysModal = ->
event_tracking.send 'ide-open-hotkeys-modal'
$modal.open {
templateUrl: "hotkeysModalTemplate"
controller: "HotkeysModalController"

View file

@ -3,7 +3,7 @@ define [
], (App) ->
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
$scope.openShareProjectModal = () ->
event_tracking.send('share-modal-opened')
event_tracking.send 'ide-open-share-modal'
$modal.open(
templateUrl: "shareProjectModalTemplate"