Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1334410C18 for ; Thu, 19 Dec 2013 17:26:23 +0000 (UTC) Received: (qmail 55442 invoked by uid 500); 19 Dec 2013 17:24:46 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 55244 invoked by uid 500); 19 Dec 2013 17:24:25 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 55196 invoked by uid 99); 19 Dec 2013 17:24:17 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 17:24:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9853F1E2AA; Thu, 19 Dec 2013 17:24:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ababiichuk@apache.org To: commits@ambari.apache.org Message-Id: <6d507f872d4247cbb9b2982f59b9150a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: AMBARI-4108 No components in manage config group > select hosts during install. (Mikhail Bayuk via ababiichuk) Date: Thu, 19 Dec 2013 17:24:17 +0000 (UTC) Updated Branches: refs/heads/branch-1.4.3 0afdfd16d -> abe0047ad 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/abe0047a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/abe0047a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/abe0047a Branch: refs/heads/branch-1.4.3 Commit: abe0047ad75233f003c4a2f869356fc98554ba28 Parents: 0afdfd1 Author: aBabiichuk Authored: Thu Dec 19 18:38:41 2013 +0200 Committer: aBabiichuk Committed: Thu Dec 19 19:23:47 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/abe0047a/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 +});