ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gna...@apache.org
Subject ambari git commit: AMBARI-19606. Search button is not functional in the dashboard(Padma Priya N via gauravn7)
Date Wed, 18 Jan 2017 11:35:05 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 da0c9732d -> 4fb628cf4


AMBARI-19606. Search button is not functional in the dashboard(Padma Priya N via gauravn7)


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

Branch: refs/heads/branch-2.5
Commit: 4fb628cf4bbb6262a074c3c0b8fec5c52a8d2556
Parents: da0c973
Author: Gaurav Nagar <grvngr@gmail.com>
Authored: Wed Jan 18 17:04:50 2017 +0530
Committer: Gaurav Nagar <grvngr@gmail.com>
Committed: Wed Jan 18 17:04:50 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/search-create-new-bar.js | 3 +++
 .../ui/app/templates/components/search-create-new-bar.hbs         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4fb628cf/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
index f9226f4..e9bc44f 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
@@ -189,6 +189,9 @@ export default Ember.Component.extend(Ember.Evented,{
             elem.addClass("btn-primary");
             this.sendAction('onSearch', { type: type, filter: filter });
         },
+        onSearchClicked(){
+          this.$('#search-field').tagsinput('add', 'Name:'+this.$('.tt-input').val());
+        },
         refresh(){
           this.sendAction('onSearch', this.get('history').getSearchParams());
         },

http://git-wip-us.apache.org/repos/asf/ambari/blob/4fb628cf/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
index 33539ea..80f3b14 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
@@ -28,7 +28,7 @@
         </ul>
       </div>
       <input id="search-field" type="text" class="form-control" data-role="tagsinput"
placeholder="Filter(Eg:name:workflowname)" aria-describedby="basic-addon1">
-      <div class="search-icon"><i class="fa fa-search"></i></div>
+      <div class="search-icon" {{action 'onSearchClicked'}}><i class="fa fa-search"></i></div>
     </div>
   </div>
   <div class='form-group date-picker'>


Mime
View raw message