ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-14038 Test connection button for Ranger should be present on Ranger config page. (ababiichuk)
Date Tue, 24 Nov 2015 13:29:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 408edebab -> b689cdc25


AMBARI-14038 Test connection button for Ranger should be present on Ranger config page. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b689cdc2
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b689cdc2
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b689cdc2

Branch: refs/heads/branch-2.1
Commit: b689cdc25d31d48075817f79658d3da1950fd984
Parents: 408edeb
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Tue Nov 24 15:19:04 2015 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Tue Nov 24 15:25:48 2015 +0200

----------------------------------------------------------------------
 .../app/controllers/main/service/info/configs.js    | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b689cdc2/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js
index 4f867d5..30ef4b9 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -197,13 +197,17 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ConfigsLoader,
A
    * get array of config properties that are shown in settings tab
    * @type {App.StackConfigProperty[]}
    */
-  settingsTabProperties: function() {
+  settingsTabProperties: function () {
     var properties = [];
-    App.Tab.find(this.get('content.serviceName') + '_settings').get('sections').forEach(function(s)
{
-      s.get('subSections').forEach(function(ss) {
-        properties = properties.concat(ss.get('configProperties').filterProperty('id'));
-      });
-    });
+    App.Tab.find().forEach(function (t) {
+      if (!t.get('isAdvanced') && t.get('serviceName') === this.get('content.serviceName'))
{
+        t.get('sections').forEach(function (s) {
+          s.get('subSections').forEach(function (ss) {
+            properties = properties.concat(ss.get('configProperties').filterProperty('id'));
+          });
+        });
+      }
+    }, this);
     return properties;
   }.property('content.serviceName', 'App.router.clusterController.isStackConfigsLoaded'),
 


Mime
View raw message