ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject git commit: AMBARI-4108 No components in manage config group > select hosts during install. (Mikhail Bayuk via ababiichuk)
Date Thu, 19 Dec 2013 16:37:47 GMT
Updated Branches:
  refs/heads/trunk 26f1fb955 -> 05a0ce2f9


AMBARI-4108 No components in manage config group > select hosts during install. (Mikhail
Bayuk via ababiichuk)


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

Branch: refs/heads/trunk
Commit: 05a0ce2f989bd6fe47275e69b40bb9e6af7f9ecf
Parents: 26f1fb9
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Thu Dec 19 18:37:36 2013 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Thu Dec 19 18:37:36 2013 +0200

----------------------------------------------------------------------
 .../main/service/manage_config_groups_controller.js    | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/05a0ce2f/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
index d22b853..f93dcef 100644
--- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
+++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
@@ -20,6 +20,7 @@
 var App = require('app');
 var hostsManagement = require('utils/hosts');
 var componentHelper = require('utils/component');
+var serviceComponents = require('data/service_components');
 
 App.ManageConfigGroupsController = Em.Controller.extend({
   name: 'manageConfigGroupsController',
@@ -267,6 +268,16 @@ App.ManageConfigGroupsController = Em.Controller.extend({
     });
   },
 
+  componentsForFilter: function () {
+    return serviceComponents.filterProperty('service_name', this.get('serviceName')).map(function
(component) {
+      return Em.Object.create({
+        displayName: component.display_name,
+        componentName: component.isClient ? 'CLIENT' : component.component_name,
+        selected: false
+      });
+    });
+  }.property('serviceName'),
+
   /**
    * delete selected config group
    */
@@ -465,4 +476,4 @@ App.ManageConfigGroupsController = Em.Controller.extend({
     configGroups.pushObject(defaultConfigGroup);
     return configGroups;
   }
-});
\ No newline at end of file
+});


Mime
View raw message