Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 93bec9b7c -> d60867cd8


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/d60867cd
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d60867cd
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d60867cd

Branch: refs/heads/branch-2.4
Commit: d60867cd83e4698f34888d8a805b9c609aac1d9f
Parents: 93bec9b
Author: ababiichuk <[email protected]>
Authored: Tue Jun 14 16:40:28 2016 +0300
Committer: ababiichuk <[email protected]>
Committed: Wed Jun 15 10:59:27 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/d60867cd/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();
   }
 });
 

Reply via email to