summaryrefslogtreecommitdiffstats
path: root/testapi/3rd_party
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-06-22 02:19:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-22 02:19:20 +0000
commit81ef9f4e41921c8e0b6d007537b8778748c63abe (patch)
treefd04065274508bd81ac8e241471bdbc62127b54e /testapi/3rd_party
parent14c877240d2c5d487aa1198668f3388187f72e8a (diff)
parentb87da1f862c1966dba0c60cb5368b86bb698104e (diff)
Merge "support pagination in TestAPI"
Diffstat (limited to 'testapi/3rd_party')
-rw-r--r--testapi/3rd_party/static/testapi-ui/components/results/resultsController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js b/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js
index 93a549a..9e3540d 100644
--- a/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js
+++ b/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js
@@ -123,8 +123,8 @@
ctrl.resultsRequest =
$http.get(content_url).success(function (data) {
ctrl.data = data;
- ctrl.totalItems = 20 // ctrl.data.pagination.total_pages * ctrl.itemsPerPage;
- ctrl.currentPage = 1 // ctrl.data.pagination.current_page;
+ ctrl.totalItems = ctrl.data.pagination.total_pages * ctrl.itemsPerPage;
+ ctrl.currentPage = ctrl.data.pagination.current_page;
}).error(function (error) {
ctrl.data = null;
ctrl.totalItems = 0;