cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ro...@apache.org
Subject [cloudstack-primate] branch master updated: views: fix jerky refresh behaviour in list view
Date Thu, 12 Dec 2019 00:55:13 GMT
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 8c5b0fc  views: fix jerky refresh behaviour in list view
8c5b0fc is described below

commit 8c5b0fc02a9b18c71fe241c187dd319e4ad38b36
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
AuthorDate: Thu Dec 12 06:24:39 2019 +0530

    views: fix jerky refresh behaviour in list view
    
    Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
---
 src/views/AutogenView.vue | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index 4bd14ee..0050239 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -313,7 +313,10 @@ export default {
   },
   methods: {
     fetchData () {
-      this.routeName = this.$route.name
+      if (this.routeName !== this.$route.name) {
+        this.routeName = this.$route.name
+        this.items = []
+      }
       if (!this.routeName) {
         this.routeName = this.$route.matched[this.$route.matched.length - 1].parent.name
       }
@@ -321,7 +324,6 @@ export default {
       this.actions = []
       this.columns = []
       this.columnKeys = []
-      this.items = []
       this.treeData = []
       this.treeSelected = {}
       var params = { listall: true }


Mime
View raw message