wizard-custom-action.js.es6 575 B

12345678910111213141516
  1. import { on, observes } from 'ember-addons/ember-computed-decorators';
  2. export default Ember.Component.extend({
  3. classNames: 'wizard-custom-action',
  4. types: ['create_topic', 'update_profile', 'send_message'],
  5. profileFields: ['name', 'username', 'email'],
  6. createTopic: Ember.computed.equal('action.type', 'create_topic'),
  7. updateProfile: Ember.computed.equal('action.type', 'update_profile'),
  8. sendMessage: Ember.computed.equal('action.type', 'send_message'),
  9. @on('init')
  10. @observes('action')
  11. setup() {
  12. this.set('existingId', this.get('action.id'));
  13. }
  14. });