Repository: ambari Updated Branches: refs/heads/trunk 1c7cbcdd5 -> 7fc33c142
AMBARI-17220 On click of Radio button is not loading ServiceConfigCategory under Advanced Tab. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7fc33c14 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7fc33c14 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7fc33c14 Branch: refs/heads/trunk Commit: 7fc33c1427d4ed35441627e78419b079513983ea Parents: 1c7cbcd Author: ababiichuk <[email protected]> Authored: Tue Jun 14 16:40:28 2016 +0300 Committer: ababiichuk <[email protected]> Committed: Wed Jun 15 10:54:16 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/models/configs/objects/service_config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7fc33c14/ambari-web/app/models/configs/objects/service_config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/configs/objects/service_config.js b/ambari-web/app/models/configs/objects/service_config.js index 35ffa99..fcbd34f 100644 --- a/ambari-web/app/models/configs/objects/service_config.js +++ b/ambari-web/app/models/configs/objects/service_config.js @@ -69,6 +69,8 @@ App.ServiceConfig = Ember.Object.extend({ return App.StackService.find(this.get('serviceName')).get('configTypeList') || []; }.property('serviceName'), + radioConfigs: Em.computed.filterBy('configs', 'displayType', 'radio button'), + observeForeignKeys: function() { //TODO refactor or move this logic to other place var configs = this.get('configs'); @@ -88,7 +90,7 @@ App.ServiceConfig = Ember.Object.extend({ } } }); - }.observes('[email protected]'), + }.observes('[email protected]'), /** * Collection of properties that were changed: @@ -128,6 +130,7 @@ App.ServiceConfig = Ember.Object.extend({ init: function() { this._super(); this.set('dependentServiceNames', App.StackService.find(this.get('serviceName')).get('dependentServiceNames') || []); + this.observeForeignKeys(); } });
