ARTEMIS-1580 Browsing in hawtio console does not allow to show empty pages

This commit is contained in:
Stanislav Knot 2018-01-09 17:17:49 +01:00 committed by Michael Pearce
parent 434841b14f
commit 06d27b4045
6 changed files with 18 additions and 0 deletions

View File

@ -186,6 +186,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {

View File

@ -223,6 +223,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {

View File

@ -247,6 +247,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {

View File

@ -212,6 +212,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {

View File

@ -286,6 +286,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {

View File

@ -242,6 +242,9 @@ var ARTEMIS = (function(ARTEMIS) {
if (parseInt(newVal.currentPage) && newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.loadTable();
}
if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) {
$scope.pagingOptions.currentPage = 1;
}
}, true);
function getBrokerMBean(jolokia) {