|
@@ -9,6 +9,7 @@ define [
|
|
|
$scope.state = {
|
|
$scope.state = {
|
|
|
error: null
|
|
error: null
|
|
|
inflight: false
|
|
inflight: false
|
|
|
|
|
+ startedFreeTrial: false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$modalInstance.opened.then () ->
|
|
$modalInstance.opened.then () ->
|
|
@@ -52,6 +53,11 @@ define [
|
|
|
$scope.state.inflight = false
|
|
$scope.state.inflight = false
|
|
|
$scope.state.error = "Sorry, something went wrong :("
|
|
$scope.state.error = "Sorry, something went wrong :("
|
|
|
|
|
|
|
|
|
|
+ $scope.startFreeTrial = () ->
|
|
|
|
|
+ ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', "projectMembers")
|
|
|
|
|
+ window.open("/user/subscription/plans")
|
|
|
|
|
+ $scope.state.startedFreeTrial = true
|
|
|
|
|
+
|
|
|
$scope.done = () ->
|
|
$scope.done = () ->
|
|
|
$modalInstance.close()
|
|
$modalInstance.close()
|
|
|
]
|
|
]
|