Repository: ambari Updated Branches: refs/heads/trunk 1e510f590 -> 21fd70c9b
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/trunk Commit: 21fd70c9bf911d56a91cad514a033fbff3c5bcb4 Parents: 1e510f5 Author: Richard Zang <rz...@apache.org> Authored: Tue Feb 16 14:27:47 2016 -0800 Committer: Richard Zang <rz...@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([