0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-20 15:51:11 +02:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-custom-input.js.es6

20 Zeilen
436 B
Text

2017-10-17 15:17:53 +02:00
export default Ember.Component.extend({
2017-10-30 07:24:51 +01:00
noneKey: 'admin.wizard.select_field',
2017-10-17 15:17:53 +02:00
noneValue: 'admin.wizard.none',
2017-10-30 07:24:51 +01:00
inputKey: 'admin.wizard.key',
inputValue: 'admin.wizard.value',
2017-10-17 15:17:53 +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);
}
}
});