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()
res.render "subscriptions/dashboard",
title: "your_subscription"
recomendedCurrency: subscription.currency
plans: plans
subscription: subscription
groups: groups

View file

@ -23,6 +23,7 @@ module.exports =
state: recurlySubscription.state
price: SubscriptionFormatters.formatPrice recurlySubscription.unit_amount_in_cents, recurlySubscription.currency
planCode: subscription.planCode
currency:recurlySubscription.currency
groupPlan: subscription.groupPlan
}, memberSubscriptions
else