From d76a6ae7107f2d1cbea813dec954895b8b1b8abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Fern=C3=A1ndez=20Capel?= Date: Fri, 29 Jun 2018 15:33:03 +0100 Subject: [PATCH] Ensure overleaf settings is defined before linking to the v1 subscription page --- services/web/app/views/subscriptions/dashboard.pug | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/web/app/views/subscriptions/dashboard.pug b/services/web/app/views/subscriptions/dashboard.pug index fee6f0dbf1..36a79820de 100644 --- a/services/web/app/views/subscriptions/dashboard.pug +++ b/services/web/app/views/subscriptions/dashboard.pug @@ -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: #{team.name} @@ -199,6 +199,3 @@ block content ) span(ng-hide="inflight") #{translate("leave_now")} span(ng-show="inflight") #{translate("processing")}... - - -