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({
|
2020-08-03 11:31:21 -04:00
|
|
|
didInsertElement() {
|
2020-07-28 12:08:21 -04:00
|
|
|
this._super(...arguments);
|
2020-07-28 16:40:16 -04:00
|
|
|
if (this.plans && this.plans.length === 1) {
|
2020-07-28 12:08:21 -04:00
|
|
|
this.set("selectedPlan", this.plans[0].id);
|
|
|
|
}
|
|
|
|
},
|
2019-12-05 22:33:38 -05:00
|
|
|
actions: {
|
|
|
|
clickPlan(plan) {
|
2020-07-22 12:06:34 -04:00
|
|
|
this.set("selectedPlan", plan.id);
|
2020-07-28 12:56:58 -04:00
|
|
|
}
|
|
|
|
}
|
2019-12-05 22:33:38 -05:00
|
|
|
});
|