Skip to content

Commit 069e3f9

Browse files
committed
CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing
Due to aggregation of templates and isos on the UI/client side, it could result that for each page we could end up having lesser templates/isos listed to have the scroll shown that triggers infinite scrolling. In theory, there is still a chance if there are several zones with the same template being listed resulting in only one aggregated template which could cause the scroll to not get shown; but in practice I believe this fix should work for most users. Page size set based on experimental data: apache#751 (comment) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 5522120 commit 069e3f9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@
586586
dataProvider: function(args) {
587587
var data = {};
588588
listViewDataProvider(args, data);
589+
// Due to zonal grouping, low pagesize can result lower
590+
// aggregated items, resulting in no scroll shown
591+
data.pagesize = 200;
589592

590593
var ignoreProject = false;
591594
if (args.filterBy != null) { //filter dropdown
@@ -1727,6 +1730,9 @@
17271730
dataProvider: function(args) {
17281731
var data = {};
17291732
listViewDataProvider(args, data);
1733+
// Due to zonal grouping, low pagesize can result lower
1734+
// aggregated items, resulting in no scroll shown
1735+
data.pagesize = 200;
17301736

17311737
var ignoreProject = false;
17321738
if (args.filterBy != null) { //filter dropdown

0 commit comments

Comments
 (0)