This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new e508e1c  view: reset listview count on list API call (#271)
e508e1c is described below

commit e508e1c711f4dd5f7c6a9ca5175d3ce44baa036e
Author: Abhishek Kumar <[email protected]>
AuthorDate: Tue Mar 31 16:45:15 2020 +0530

    view: reset listview count on list API call (#271)
    
    Fixes #258
    
    Reset items count for listview while calling a list API to prevent wrong 
pagination on empty list in response.
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 src/views/AutogenView.vue | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index dca17e5..47b10af 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -457,6 +457,7 @@ export default {
             break
           }
         }
+        this.itemCount = 0
         for (const key in json[responseName]) {
           if (key === 'count') {
             this.itemCount = json[responseName].count

Reply via email to