wizard-custom-input.js.es6 360 B

1234567891011121314151617
  1. export default Ember.Component.extend({
  2. noneKey: 'admin.wizard.none',
  3. noneValue: 'admin.wizard.none',
  4. actions: {
  5. add() {
  6. if (!this.get('inputs')) {
  7. this.set('inputs', Ember.A());
  8. }
  9. this.get('inputs').pushObject(Ember.Object.create());
  10. },
  11. remove(input) {
  12. this.get('inputs').removeObject(input);
  13. }
  14. }
  15. });