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