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

16 lines
331 B
JavaScript
Raw Normal View History

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