Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 09:50:28 +01:00
17 Zeilen
367 B
JavaScript
17 Zeilen
367 B
JavaScript
export default Ember.Component.extend({
|
|
classNames: 'custom-inputs',
|
|
valuePlaceholder: 'admin.wizard.value',
|
|
|
|
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);
|
|
}
|
|
}
|
|
});
|