ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-18749. Hosts paging works incorrectly with service and component filters (alexantonenko)
Date Mon, 31 Oct 2016 19:29:10 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 726b0605f -> da0d6051e


AMBARI-18749. Hosts paging works incorrectly with service and component filters (alexantonenko)


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

Branch: refs/heads/branch-2.5
Commit: da0d6051e91afd996c58ff9b098eb5750df26b45
Parents: 726b060
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Mon Oct 31 17:38:25 2016 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Mon Oct 31 21:29:04 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/global/update_controller.js | 4 ++--
 ambari-web/app/views/common/table_view.js              | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/da0d6051/ambari-web/app/controllers/global/update_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js
index da10e00..02f66d1 100644
--- a/ambari-web/app/controllers/global/update_controller.js
+++ b/ambari-web/app/controllers/global/update_controller.js
@@ -410,11 +410,11 @@ App.UpdateController = Em.Controller.extend({
         return !param.isComponentRelatedFilter;
       });
 
-      queryParams.push({
+      queryParams = [{
         key: 'Hosts/host_name',
         value: hostNames,
         type: 'MULTIPLE'
-      });
+      }];
       params.callback(skipCall, queryParams);
     }
   },

http://git-wip-us.apache.org/repos/asf/ambari/blob/da0d6051/ambari-web/app/views/common/table_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/table_view.js b/ambari-web/app/views/common/table_view.js
index acd6bac..b8d4380 100644
--- a/ambari-web/app/views/common/table_view.js
+++ b/ambari-web/app/views/common/table_view.js
@@ -366,6 +366,7 @@ App.TableView = Em.View.extend(App.UserPref, {
         type: type
       };
       this.get('filterConditions').push(filterCondition);
+      this.propertyDidChange('showFilteredContent');
     }
 
     this.saveAllFilterConditions();


Mime
View raw message