2019-12-12 18:41:14 -05:00
|
|
|
import { equal } from "@ember/object/computed";
|
|
|
|
|
2019-12-05 22:33:38 -05:00
|
|
|
export default Ember.Component.extend({
|
2019-12-12 18:41:14 -05:00
|
|
|
planButtonSelected: equal("planTypeIsSelected", true),
|
|
|
|
paymentButtonSelected: equal("planTypeIsSelected", false),
|
|
|
|
|
2019-12-05 22:33:38 -05:00
|
|
|
actions: {
|
2019-12-12 18:41:14 -05:00
|
|
|
selectPlans() {
|
|
|
|
this.set("planTypeIsSelected", true);
|
|
|
|
},
|
|
|
|
|
|
|
|
selectPayments() {
|
|
|
|
this.set("planTypeIsSelected", false);
|
|
|
|
},
|
|
|
|
|
2019-12-05 22:33:38 -05:00
|
|
|
clickPlan(plan) {
|
2019-12-09 18:15:30 -05:00
|
|
|
this.plans.map(p => p.set("selected", false));
|
|
|
|
plan.set("selected", true);
|
2019-12-05 22:33:38 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|