This is an automated email from the ASF dual-hosted git repository. dahn pushed a commit to branch 4.19 in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push: new d5ba39387b6 fix projects metrics on dashboard (#10651) d5ba39387b6 is described below commit d5ba39387b690bf6f778e34ab5be0e9693afb0d4 Author: Bernardo De Marco Gonçalves <bernardomg2...@gmail.com> AuthorDate: Tue Apr 8 07:16:18 2025 -0300 fix projects metrics on dashboard (#10651) --- ui/src/views/dashboard/UsageDashboard.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index 9df3b38c6a9..5069968a419 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -460,9 +460,13 @@ export default { }, listProject () { this.loading = true - api('listProjects', { id: store.getters.project.id }).then(json => { + const params = { + id: store.getters.project.id, + listall: true + } + api('listProjects', params).then(json => { this.loading = false - if (json && json.listprojectsresponse && json.listprojectsresponse.project) { + if (json?.listprojectsresponse?.project) { this.project = json.listprojectsresponse.project[0] } })