wizard-custom-input.js.es6 436 B

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