discourse-subscriptions/assets/javascripts/discourse/components/payment-options.js.es6

16 lines
319 B
Plaintext
Raw Normal View History

import Component from "@ember/component";
export default Component.extend({
init() {
this._super(...arguments);
2020-07-28 16:40:16 -04:00
if (this.plans && this.plans.length === 1) {
this.set("selectedPlan", this.plans[0].id);
}
},
2019-12-05 22:33:38 -05:00
actions: {
clickPlan(plan) {
this.set("selectedPlan", plan.id);
}
}
2019-12-05 22:33:38 -05:00
});