FIX: client-side channel validation (#10)
This commit is contained in:
parent
f1d42b5dd4
commit
c766a9cae9
|
@ -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));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue