Track share modal opening.

This commit is contained in:
Paulo Reis 2016-07-05 14:32:56 +01:00
parent 7dd1906eaf
commit a40cbdd84e

View file

@ -1,8 +1,10 @@
define [
"base"
], (App) ->
App.controller "ShareController", ["$scope", "$modal", ($scope, $modal) ->
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
$scope.openShareProjectModal = () ->
event_tracking.send('share-modal-opened')
$modal.open(
templateUrl: "shareProjectModalTemplate"
controller: "ShareProjectModalController"