ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppr...@apache.org
Subject ambari git commit: AMBARI-20850. WFM: Clicking search icon in workflow dashboard throws error. (Anita Gnanamalar Jebaraj via padmapriyanitt)
Date Fri, 28 Apr 2017 05:45:48 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 0ca0442de -> fb9d4987c


AMBARI-20850. WFM: Clicking search icon in workflow dashboard throws error. (Anita Gnanamalar
Jebaraj via padmapriyanitt)


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

Branch: refs/heads/branch-2.5
Commit: fb9d4987c6958cb9df74a11b6438082bcbf1ef47
Parents: 0ca0442
Author: padmapriyanitt <padmapriyanitt@gmail.com>
Authored: Fri Apr 28 11:00:31 2017 +0530
Committer: padmapriyanitt <padmapriyanitt@gmail.com>
Committed: Fri Apr 28 11:15:32 2017 +0530

----------------------------------------------------------------------
 .../main/resources/ui/app/components/search-create-new-bar.js   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fb9d4987/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 7e69dea..4bfb5fa 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,7 +189,10 @@ export default Ember.Component.extend(Ember.Evented,{
             this.sendAction('onSearch', { type: type, filter: filter });
         },
         onSearchClicked(){
-          this.$('#search-field').tagsinput('add', 'Name:'+this.$('.tt-input').val());
+          var searchValue=this.$('.tt-input').val();
+          if(!Ember.isBlank(searchValue)) {
+            this.$('#search-field').tagsinput('add', 'Name:'+searchValue);
+          }
         },
         refresh(){
           this.sendAction('onSearch', this.get('history').getSearchParams());


Mime
View raw message