From 8502a667e551bf993d4a57ec6a2129c732fa3e5b Mon Sep 17 00:00:00 2001 From: vedulasantosh Date: Mon, 28 Aug 2017 20:06:58 +0530 Subject: [PATCH] CLOUDSTACK-10027: Repeating the same list for Internal LB in VPC (#2216) In VPC while scrolling down the Internal LB's list it is continuously giving the Internal LB's by repeating the same list. --- ui/scripts/vpc.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index d1a093ad090..8416d38fd7d 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -745,12 +745,19 @@ } }, dataProvider: function(args) { + var data = { + page: args.page, + pageSize: pageSize, + networkid: args.context.networks[0].id, + listAll: true + }; + var keyword = (((args || {}).filterBy || {}).search || {}).value; + if (keyword) { + data.keyword = keyword; + } $.ajax({ url: createURL('listLoadBalancers'), - data: { - networkid: args.context.networks[0].id, - listAll: true - }, + data: data, success: function(json) { var items = json.listloadbalancersresponse.loadbalancer; if (items != null) {