mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Ensure table updates when page settings update
The entire table should also refresh when one of the options changes. Otherwise, the rows are not filled in correctly to the bottom of the page.
This commit is contained in:
parent
bde2591501
commit
0cf2202299
1 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,13 @@ module.controller('KbnTableVisController', function ($scope, Private) {
|
|||
$scope.uiState.set('vis.params.sort', newSort);
|
||||
});
|
||||
|
||||
$scope.$watch('esResponse', function (resp, oldResp) {
|
||||
/**
|
||||
* Recreate the entire table when:
|
||||
* - the underlying data changes (esResponse)
|
||||
* - one of the view options changes (vis.params)
|
||||
*/
|
||||
$scope.$watchMulti(['esResponse', 'vis.params'], function ([resp]) {
|
||||
|
||||
let tableGroups = $scope.tableGroups = null;
|
||||
let hasSomeRows = $scope.hasSomeRows = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue