mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Backport PR #8422
---------
**Commit 1:**
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.
* Original sha: 0cf2202299
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-09-21T23:38:29Z
This commit is contained in:
parent
48725a379a
commit
1904f56c73
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