product controller

This commit is contained in:
Rimian Perkins
2019-10-25 08:18:16 +11:00
parent 5f71def8a4
commit 6fbcea2cf3
8 changed files with 55 additions and 3 deletions
@@ -10,10 +10,9 @@ export default Discourse.Route.extend({
return `$${toCurrency(plan.amount)} ${plan.currency.toUpperCase()} / ${plan.interval}`;
};
const group = Group.find();
const plans = Plan.findAll().then(results => results.map(p => planSelectText(p)));
const subscription = Subscription.create();
return Ember.RSVP.hash({ group, plans, subscription });
return Ember.RSVP.hash({ plans, subscription });
}
});