Browse Source

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

Alex Antonenko 8 years ago
parent
commit
da0d6051e9

+ 2 - 2
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);
     }
   },

+ 1 - 0
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();