Add event-tracking to the make-token-based action

This commit is contained in:
Shane Kilkelly 2017-10-31 14:23:05 +00:00
parent cc67b871e9
commit 030ffbe231

View file

@ -231,11 +231,12 @@ define [
$modalInstance.dismiss()
]
App.controller "MakeTokenBasedModalController", ["$scope", "$modalInstance", "settings", ($scope, $modalInstance, settings) ->
App.controller "MakeTokenBasedModalController", ["$scope", "$modalInstance", "settings", "event_tracking", ($scope, $modalInstance, settings, event_tracking) ->
$scope.makeTokenBased = () ->
$scope.project.publicAccesLevel = "tokenBased"
settings.saveProjectAdminSettings({publicAccessLevel: "tokenBased"})
event_tracking.sendMB 'project-make-token-based'
$modalInstance.close()
$scope.cancel = () ->