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

16 lines
333 B
Plaintext
Raw Normal View History

import Component from "@ember/component";
export default Component.extend({
didInsertElement() {
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);
2020-09-16 10:53:50 -04:00
},
},
2019-12-05 22:33:38 -05:00
});