From 2bf34bba4d71e179b03aa7b3702dfd9fed4d1863 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 13 Oct 2014 16:14:13 +0100 Subject: [PATCH] added currency to subscription view model --- .../coffee/Features/Subscription/SubscriptionController.coffee | 1 + .../Features/Subscription/SubscriptionViewModelBuilder.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee index a55b2465e5..2633944e74 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee @@ -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 diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee index 631b72e48a..2c47462534 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee @@ -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