wizard-custom-field.js.es6 506 B

1234567891011121314151617
  1. import { default as computed } from 'ember-addons/ember-computed-decorators';
  2. export default Ember.Component.extend({
  3. classNames: 'wizard-custom-field',
  4. isDropdown: Ember.computed.equal('field.type', 'dropdown'),
  5. disableId: Ember.computed.not('field.isNew'),
  6. @computed('field.type')
  7. isInput: (type) => type === 'text' || type === 'textarea',
  8. @computed()
  9. presetChoices() {
  10. return [
  11. { id: 'categories', name: I18n.t('admin.wizard.field.choices_preset.categories') }
  12. ];
  13. }
  14. });