You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2019/12/12 00:55:13 UTC
[cloudstack-primate] branch master updated: views: fix jerky
refresh behaviour in list view
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 <ro...@shapeblue.com>
AuthorDate: Thu Dec 12 06:24:39 2019 +0530
views: fix jerky refresh behaviour in list view
Signed-off-by: Rohit Yadav <ro...@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 }