mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
2421593d85
commit
6e960492ff
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue