From c766a9cae9e85cbc2c4b074abfabfcba057dfee5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 15 Oct 2017 15:25:02 +0100 Subject: [PATCH] FIX: client-side channel validation (#10) --- .../controllers/modals/admin-plugins-chat-edit-channel.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/admin/controllers/modals/admin-plugins-chat-edit-channel.js.es6 b/assets/javascripts/admin/controllers/modals/admin-plugins-chat-edit-channel.js.es6 index 691b921..dedd94e 100644 --- a/assets/javascripts/admin/controllers/modals/admin-plugins-chat-edit-channel.js.es6 +++ b/assets/javascripts/admin/controllers/modals/admin-plugins-chat-edit-channel.js.es6 @@ -20,7 +20,7 @@ export default Ember.Controller.extend(ModalFunctionality, { setupValidations() { if (this.get('model.provider')) { 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)); } },