0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-27 03:20:27 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-custom-inputs.js.es6

18 Zeilen
367 B
Text

2018-05-24 07:34:58 +02:00
export default Ember.Component.extend({
classNames: 'custom-inputs',
2019-04-18 01:47:41 +02:00
valuePlaceholder: 'admin.wizard.value',
2018-05-24 07:34:58 +02:00
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);
}
}
});