Add modal controller.

This commit is contained in:
Paulo Reis 2017-02-02 10:19:00 +00:00
parent 98b98005a6
commit fe33fa1f65

View file

@ -0,0 +1,11 @@
define [
"base"
], (App) ->
App.controller "TrackChangesUpgradeModalController", ($scope, $modalInstance) ->
$scope.cancel = () ->
$modalInstance.dismiss()
$scope.startFreeTrial = (source) ->
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
$scope.startedFreeTrial = true