Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 12:22:54 +01:00
14 Zeilen
293 B
JavaScript
14 Zeilen
293 B
JavaScript
export default Ember.Component.extend({
|
|
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);
|
|
}
|
|
}
|
|
});
|