mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #717 from sharelatex/afc-fix-subscription-page-bug
Ensure overleaf settings is defined before linking to the v1 subscription page
This commit is contained in:
commit
09c2034c97
1 changed files with 2 additions and 5 deletions
|
@ -118,14 +118,14 @@ block content
|
|||
a(href="/subscription/group").btn.btn-primary !{translate("manage_group")}
|
||||
hr
|
||||
|
||||
if v1Subscriptions && v1Subscriptions.has_subscription
|
||||
if settings.overleaf && v1Subscriptions && v1Subscriptions.has_subscription
|
||||
p
|
||||
| You are subscribed to Overleaf through Overleaf v1
|
||||
p
|
||||
a.btn.btn-primary(href=settings.overleaf.host+"/users/edit#status") Manage v1 Subscription
|
||||
hr
|
||||
|
||||
if v1Subscriptions && v1Subscriptions.teams && v1Subscriptions.teams.length > 0
|
||||
if settings.overleaf && v1Subscriptions && v1Subscriptions.teams && v1Subscriptions.teams.length > 0
|
||||
for team in v1Subscriptions.teams
|
||||
p
|
||||
| You are a member of the Overleaf v1 team: <strong>#{team.name}</strong>
|
||||
|
@ -199,6 +199,3 @@ block content
|
|||
)
|
||||
span(ng-hide="inflight") #{translate("leave_now")}
|
||||
span(ng-show="inflight") #{translate("processing")}...
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue