|
@@ -1,11 +1,20 @@
|
|
|
define(['base'], App =>
|
|
define(['base'], App =>
|
|
|
App.controller('LeftHandMenuPromoController', function(
|
|
App.controller('LeftHandMenuPromoController', function(
|
|
|
$scope,
|
|
$scope,
|
|
|
- UserAffiliationsDataService
|
|
|
|
|
|
|
+ UserAffiliationsDataService,
|
|
|
|
|
+ eventTracking
|
|
|
) {
|
|
) {
|
|
|
$scope.hasProjects = window.data.projects.length > 0
|
|
$scope.hasProjects = window.data.projects.length > 0
|
|
|
$scope.userHasNoSubscription = window.userHasNoSubscription
|
|
$scope.userHasNoSubscription = window.userHasNoSubscription
|
|
|
|
|
|
|
|
|
|
+ $scope.upgradeSubscription = function() {
|
|
|
|
|
+ eventTracking.send('subscription-funnel', 'project-page', 'upgrade')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $scope.share = function() {
|
|
|
|
|
+ eventTracking.send('subscription-funnel', 'project-page', 'sharing')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const _userHasNoAffiliation = function() {
|
|
const _userHasNoAffiliation = function() {
|
|
|
$scope.userEmails = []
|
|
$scope.userEmails = []
|
|
|
$scope.userAffiliations = []
|
|
$scope.userAffiliations = []
|