Closes #5860. Adding spyPerPage param to .spy.params instead of on the editableVis.params.
Fixes #5942
This commit is contained in:
parent
e72cbc2ba2
commit
9086f504d6
3 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<kbn-agg-table
|
||||
table="table"
|
||||
export-title="vis.title"
|
||||
per-page="editableVis.params.spyPerPage">
|
||||
per-page="spy.params.spyPerPage">
|
||||
</kbn-agg-table>
|
||||
|
|
|
@ -21,8 +21,8 @@ define(function (require) {
|
|||
if (!$scope.vis || !$scope.esResp) {
|
||||
$scope.table = null;
|
||||
} else {
|
||||
if (!$scope.editableVis.params.spyPerPage) {
|
||||
$scope.editableVis.params.spyPerPage = PER_PAGE_DEFAULT;
|
||||
if (!$scope.spy.params.spyPerPage) {
|
||||
$scope.spy.params.spyPerPage = PER_PAGE_DEFAULT;
|
||||
}
|
||||
|
||||
$scope.table = tabifyAggResponse($scope.vis, $scope.esResp, {
|
||||
|
|
|
@ -16,6 +16,7 @@ define(function (require) {
|
|||
var $container = $el.find('.visualize-spy-container');
|
||||
var fullPageSpy = _.get($scope.spy, 'mode.fill', false);
|
||||
$scope.modes = spyModes;
|
||||
$scope.spy.params = $scope.spy.params || {};
|
||||
|
||||
function getSpyObject(name) {
|
||||
name = _.isUndefined(name) ? $scope.spy.mode.name : name;
|
||||
|
|
Loading…
Reference in a new issue