FIX: client-side channel validation (#10)

This commit is contained in:
David Taylor 2017-10-15 15:25:02 +01:00 committed by Guo Xiang Tan
parent f1d42b5dd4
commit c766a9cae9
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
setupValidations() { setupValidations() {
if (this.get('model.provider')) { if (this.get('model.provider')) {
const theKeys = this.get('model.provider.channel_parameters').map( ( param ) => param['key'] ); const theKeys = this.get('model.provider.channel_parameters').map( ( param ) => param['key'] );
Ember.defineProperty(this,'paramValidation', Ember.computed(`model.channel.data.${theKeys.join(',')}`, this._paramValidation)); Ember.defineProperty(this,'paramValidation', Ember.computed(`model.channel.data.{${theKeys.join(',')}}`, this._paramValidation));
} }
}, },