diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-06-22 02:19:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-22 02:19:20 +0000 |
commit | b7644e8f1f43b762bab51d8bc7a68298558a6bdf (patch) | |
tree | 4cd24ba34647c32cef89e2a0391be3818ed7af0a /utils/test/testapi/3rd_party | |
parent | e9383ded0d640e372d29c3d191ef68868ea0aa02 (diff) | |
parent | d96bf32a81e1c109c87013db5799940c0f9d726b (diff) |
Merge "support pagination in TestAPI"
Diffstat (limited to 'utils/test/testapi/3rd_party')
-rw-r--r-- | utils/test/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/test/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js b/utils/test/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js index 93a549a7f..9e3540da5 100644 --- a/utils/test/testapi/3rd_party/static/testapi-ui/components/results/resultsController.js +++ b/utils/test/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; |