added currency to subscription view model

This commit is contained in:
Henry Oswald 2014-10-13 16:14:13 +01:00
parent f55ef2f1b4
commit 2bf34bba4d
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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