mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
only run participate test for sign up if user has no projects
This commit is contained in:
@@ -11,12 +11,14 @@ define [
|
||||
$scope.predicate = "lastUpdated"
|
||||
$scope.reverse = true
|
||||
|
||||
|
||||
sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)->
|
||||
$scope.first_sign_up = chosenVariation
|
||||
$timeout () ->
|
||||
recalculateProjectListHeight()
|
||||
, 10
|
||||
if $scope.projects.length > 0
|
||||
$scope.first_sign_up = "default"
|
||||
else
|
||||
sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)->
|
||||
$scope.first_sign_up = chosenVariation
|
||||
$timeout () ->
|
||||
recalculateProjectListHeight()
|
||||
, 10
|
||||
|
||||
recalculateProjectListHeight = () ->
|
||||
topOffset = $(".project-list-card")?.offset()?.top
|
||||
|
||||
Reference in New Issue
Block a user