File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,15 +459,26 @@ export default {
459459 this .updateVPCCheckAndFetchNetworkOfferingData ()
460460 },
461461 fetchDomainData () {
462+ this .domainLoading = true
463+ this .loadMoreDomains (1 )
464+ },
465+ loadMoreDomains (page ) {
462466 const params = {}
463467 params .listAll = true
464468 params .details = ' min'
465- this .domainLoading = true
469+ params .pagesize = 100
470+ params .page = page
471+ var domainCount
466472 api (' listDomains' , params).then (json => {
467473 const listDomains = json .listdomainsresponse .domain
474+ domainCount = json .listdomainsresponse .count
468475 this .domains = this .domains .concat (listDomains)
469476 }).finally (() => {
470- this .domainLoading = false
477+ if (domainCount <= this .domains .length ) {
478+ this .domainLoading = false
479+ } else {
480+ this .loadMoreDomains (page + 1 )
481+ }
471482 this .form .domainid = 0
472483 this .handleDomainChange (this .domains [0 ])
473484 })
You can’t perform that action at this time.
0 commit comments