ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [08/33] ambari git commit: AMBARI-14986 Combo Search: Create auto suggest for Serivce Component filters (Joe Wang via rzang)
Date Thu, 18 Feb 2016 13:33:27 GMT
AMBARI-14986 Combo Search: Create auto suggest for Serivce Component filters (Joe Wang via
rzang)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 21fd70c9bf911d56a91cad514a033fbff3c5bcb4
Parents: 1e510f5
Author: Richard Zang <rzang@apache.org>
Authored: Tue Feb 16 14:27:47 2016 -0800
Committer: Richard Zang <rzang@apache.org>
Committed: Tue Feb 16 14:27:47 2016 -0800

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/combo_search_box.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/21fd70c9/ambari-web/app/controllers/main/host/combo_search_box.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/combo_search_box.js b/ambari-web/app/controllers/main/host/combo_search_box.js
index 1c2a87f..d835e97 100644
--- a/ambari-web/app/controllers/main/host/combo_search_box.js
+++ b/ambari-web/app/controllers/main/host/combo_search_box.js
@@ -82,13 +82,10 @@ App.MainHostComboSearchBoxController = Em.Controller.extend({
           ]);
           break;
         case 'service':
-          callback(App.Service.find().toArray().mapProperty('serviceName'));
+          callback(App.Service.find().toArray().mapProperty('serviceName'), {preserveOrder:
true});
           break;
         case 'component':
-          callback(App.MasterComponent.find().toArray().mapProperty('componentName')
-              .concat(App.SlaveComponent.find().toArray().mapProperty('componentName'))
-              .concat(App.ClientComponent.find().toArray().mapProperty('componentName'))
-            ,{preserveOrder: true});
+          callback(App.HostComponent.find().toArray().mapProperty('componentName').uniq(),
{preserveOrder: true});
           break;
         case 'state':
           callback([


Mime
View raw message