This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 4b1fc19 ui: Refresh Usage dashboard when swapping between Project and
Default view (#5447)
4b1fc19 is described below
commit 4b1fc195cfe168d4da3107ba4b77c5e64f022463
Author: Pearl Dsilva <[email protected]>
AuthorDate: Wed Sep 15 10:50:25 2021 +0530
ui: Refresh Usage dashboard when swapping between Project and Default view
(#5447)
---
ui/src/views/dashboard/UsageDashboard.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/views/dashboard/UsageDashboard.vue
b/ui/src/views/dashboard/UsageDashboard.vue
index e1b3c82..bfda081 100644
--- a/ui/src/views/dashboard/UsageDashboard.vue
+++ b/ui/src/views/dashboard/UsageDashboard.vue
@@ -137,7 +137,7 @@ export default {
this.$store.watch(
(state, getters) => getters.project,
(newValue, oldValue) => {
- if (newValue && newValue.id) {
+ if (newValue && newValue !== oldValue) {
this.fetchData()
}
}