UI: load domain lists only if listDomains API is available (#8660)

This commit is contained in:
Wei Zhou 2024-02-15 12:06:16 +01:00 committed by GitHub
parent 17516fd989
commit f86c62e49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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 = {}