Merge pull request #1761 from overleaf/jel-trial-impression-collab

Send event on collaborator trial impression event

GitOrigin-RevId: f19feaf2a00ef5728d7a190f0736efe76e417230
This commit is contained in:
Jessica Lawshe 2019-05-14 08:02:14 -05:00 committed by sharelatex
parent 59cce6b52e
commit 7763427cea

View file

@ -58,6 +58,16 @@ define(['base'], App =>
}
$scope.refreshCanAddCollaborators()
$scope.$watch('canAddCollaborators', function() {
if (!$scope.canAddCollaborators) {
event_tracking.send(
'subscription-funnel',
'editor-click-feature',
'projectMembers'
)
}
})
$scope.$watch(
'(project.members.length + project.invites.length)',
_noOfMembers => $scope.refreshCanAddCollaborators()