Skip to content

Commit

Permalink
UI: load domain lists only if listDomains API is available
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Feb 15, 2024
1 parent bda49ab commit 9f026f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/views/network/CreateIsolatedNetworkForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,10 @@ export default {
this.updateVPCCheckAndFetchNetworkOfferingData()
},
fetchDomainData () {
this.domain.loading = true
this.loadMore('listDomains', 1, this.domain)
if ('listDomains' in this.$store.getters.apis) {
this.domain.loading = true
this.loadMore('listDomains', 1, this.domain)
}
},
loadMore (apiToCall, page, sema) {
const params = {}
Expand Down

0 comments on commit 9f026f6

Please sign in to comment.