Skip to content

Commit 981310c

Browse files
authored
UI: Fix the Add / Remove Vmware DC button on Zone detail view (#8781)
* UI: Fix the Add / Remove Vmware DC button on Zone detail view * hide the button for non vmware envs
1 parent 0271494 commit 981310c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ui/src/views/AutogenView.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,12 @@ export default {
989989
}
990990
this.itemCount = apiItemCount
991991
992+
if (this.dataView && this.$route.path.includes('/zone/') && 'listVmwareDcs' in this.$store.getters.apis) {
993+
api('listVmwareDcs', { zoneid: this.items[0].id }).then(response => {
994+
this.items[0].vmwaredc = response.listvmwaredcsresponse.VMwareDC
995+
})
996+
}
997+
992998
if (['listTemplates', 'listIsos'].includes(this.apiName) && this.items.length > 1) {
993999
this.items = [...new Map(this.items.map(x => [x.id, x])).values()]
9941000
}

0 commit comments

Comments
 (0)