0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-custom-action.js.es6
Angus McLeod 7b09410a26 various
2017-10-05 08:36:46 +08:00

11 Zeilen
454 B
JavaScript

export default Ember.Component.extend({
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.[]')
});