1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/components/wizard-custom-action.js.es6

12 Zeilen
454 B
Text

2017-09-23 04:34:07 +02:00
export default Ember.Component.extend({
2017-10-05 02:36:46 +02:00
types: ['create_topic', 'update_profile', 'send_message'],
profileFields: ['name', 'username', 'email'],
createTopic: Ember.computed.equal('action.type', 'create_topic'),
updateProfile: Ember.computed.equal('action.type', 'update_profile'),
sendMessage: Ember.computed.equal('action.type', 'send_message'),
test: function() {
console.log(this.get('stepFields'));
}.observes('stepFields.[]')
2017-09-23 04:34:07 +02:00
});