0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-20 07:41:11 +02:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-custom-input.js.es6
2017-10-17 21:17:53 +08:00

17 Zeilen
360 B
JavaScript

export default Ember.Component.extend({
noneKey: 'admin.wizard.none',
noneValue: 'admin.wizard.none',
actions: {
add() {
if (!this.get('inputs')) {
this.set('inputs', Ember.A());
}
this.get('inputs').pushObject(Ember.Object.create());
},
remove(input) {
this.get('inputs').removeObject(input);
}
}
});