You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2013/12/19 17:37:47 UTC
git commit: AMBARI-4108 No components in manage config group > select
hosts during install. (Mikhail Bayuk via ababiichuk)
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 <ab...@cybervisiontech.com>
Authored: Thu Dec 19 18:37:36 2013 +0200
Committer: aBabiichuk <ab...@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
+});