mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added currency to subscription view model
This commit is contained in:
parent
f55ef2f1b4
commit
2bf34bba4d
2 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ module.exports = SubscriptionController =
|
||||||
plans = SubscriptionViewModelBuilder.buildViewModel()
|
plans = SubscriptionViewModelBuilder.buildViewModel()
|
||||||
res.render "subscriptions/dashboard",
|
res.render "subscriptions/dashboard",
|
||||||
title: "your_subscription"
|
title: "your_subscription"
|
||||||
|
recomendedCurrency: subscription.currency
|
||||||
plans: plans
|
plans: plans
|
||||||
subscription: subscription
|
subscription: subscription
|
||||||
groups: groups
|
groups: groups
|
||||||
|
|
|
@ -23,6 +23,7 @@ module.exports =
|
||||||
state: recurlySubscription.state
|
state: recurlySubscription.state
|
||||||
price: SubscriptionFormatters.formatPrice recurlySubscription.unit_amount_in_cents, recurlySubscription.currency
|
price: SubscriptionFormatters.formatPrice recurlySubscription.unit_amount_in_cents, recurlySubscription.currency
|
||||||
planCode: subscription.planCode
|
planCode: subscription.planCode
|
||||||
|
currency:recurlySubscription.currency
|
||||||
groupPlan: subscription.groupPlan
|
groupPlan: subscription.groupPlan
|
||||||
}, memberSubscriptions
|
}, memberSubscriptions
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue