Merge pull request #1550 from sharelatex/spd-fix-broken-team-invite-accept

Fix broken accept-team-invite page

GitOrigin-RevId: 0ba3c906548358931902beb48812257da16fc5db
This commit is contained in:
Simon Detheridge 2019-02-25 16:24:03 +00:00 committed by James Allen
parent 2421593d85
commit 6e960492ff
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ extends ../../layout
block scripts block scripts
script(type='text/javascript'). script(type='text/javascript').
window.teamId = '#{teamId}' window.teamId = '#{teamId}'
window.hasPersonalSubscription = #{hasPersonalSubscription} window.hasIndividualRecurlySubscription = #{hasIndividualRecurlySubscription}
window.inviteToken = '#{inviteToken}' window.inviteToken = '#{inviteToken}'
block content block content

View file

@ -14,8 +14,8 @@ define(['base'], App =>
App.controller('TeamInviteController', function($scope, $http) { App.controller('TeamInviteController', function($scope, $http) {
$scope.inflight = false $scope.inflight = false
if (hasPersonalSubscription) { if (hasIndividualRecurlySubscription) {
$scope.view = 'personalSubscription' $scope.view = 'hasIndividualRecurlySubscription'
} else { } else {
$scope.view = 'teamInvite' $scope.view = 'teamInvite'
} }