This is an automated email from the ASF dual-hosted git repository. pearl11594 pushed a commit to branch fix-add-remove-vmware-dc in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 144d8a9acb34b7b6090dd8ae8e9ab07401ae48da Author: Pearl Dsilva <[email protected]> AuthorDate: Wed Mar 13 08:32:15 2024 -0400 UI: Fix the Add / Remove Vmware DC button on Zone detail view --- ui/src/views/AutogenView.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index bf1c42d4c05..2602cc67e11 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -986,6 +986,12 @@ export default { } this.itemCount = apiItemCount + if (this.dataView && this.$route.path.includes('/zone/')) { + api('listVmwareDcs', { zoneid: this.items[0].id }).then(response => { + this.items[0].vmwaredc = response.listvmwaredcsresponse.VMwareDC + }) + } + if (['listTemplates', 'listIsos'].includes(this.apiName) && this.items.length > 1) { this.items = [...new Map(this.items.map(x => [x.id, x])).values()] }
