mirror of https://github.com/apache/cloudstack.git
fix projects metrics on dashboard (#10651)
This commit is contained in:
parent
ee94ae575b
commit
d5ba39387b
|
|
@ -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]
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue