mirror of https://github.com/apache/cloudstack.git
Merge branch '4.16'
This commit is contained in:
commit
5bdfa35b3d
|
|
@ -376,15 +376,19 @@ export default {
|
|||
} else { // from guest network section
|
||||
var params = {}
|
||||
this.networkOfferingLoading = true
|
||||
api('listVPCs', params).then(json => {
|
||||
const listVPCs = json.listvpcsresponse.vpc
|
||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||
if (vpcAvailable === false) {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
} else {
|
||||
this.fetchNetworkOfferingData()
|
||||
}
|
||||
})
|
||||
if ('listVPCs' in this.$store.getters.apis) {
|
||||
api('listVPCs', params).then(json => {
|
||||
const listVPCs = json.listvpcsresponse.vpc
|
||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||
if (vpcAvailable === false) {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
} else {
|
||||
this.fetchNetworkOfferingData()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
}
|
||||
}
|
||||
},
|
||||
fetchNetworkOfferingData (forVpc) {
|
||||
|
|
|
|||
|
|
@ -346,15 +346,19 @@ export default {
|
|||
} else { // from guest network section
|
||||
var params = {}
|
||||
this.networkOfferingLoading = true
|
||||
api('listVPCs', params).then(json => {
|
||||
const listVPCs = json.listvpcsresponse.vpc
|
||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||
if (vpcAvailable === false) {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
} else {
|
||||
this.fetchNetworkOfferingData()
|
||||
}
|
||||
})
|
||||
if ('listVPCs' in this.$store.getters.apis) {
|
||||
api('listVPCs', params).then(json => {
|
||||
const listVPCs = json.listvpcsresponse.vpc
|
||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||
if (vpcAvailable === false) {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
} else {
|
||||
this.fetchNetworkOfferingData()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.fetchNetworkOfferingData(false)
|
||||
}
|
||||
}
|
||||
},
|
||||
fetchNetworkOfferingData (forVpc) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue