1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/components/wizard-custom-input.js.es6

18 Zeilen
360 B
Text

2017-10-17 15:17:53 +02:00
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);
}
}
});