2019-12-12 18:41:14 -05:00
|
|
|
import { equal } from "@ember/object/computed";
|
2020-05-28 11:32:57 -04:00
|
|
|
import Component from "@ember/component";
|
2019-12-12 18:41:14 -05:00
|
|
|
|
2020-05-28 11:32:57 -04:00
|
|
|
export default 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
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|