mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: Network offerings not listed if listVPCs not available in the account Role (#6354)
This commit is contained in:
parent
efb1f2b719
commit
556f9dac0f
@ -328,15 +328,19 @@ export default {
|
|||||||
} else { // from guest network section
|
} else { // from guest network section
|
||||||
var params = {}
|
var params = {}
|
||||||
this.networkOfferingLoading = true
|
this.networkOfferingLoading = true
|
||||||
api('listVPCs', params).then(json => {
|
if ('listVPCs' in this.$store.getters.apis) {
|
||||||
const listVPCs = json.listvpcsresponse.vpc
|
api('listVPCs', params).then(json => {
|
||||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
const listVPCs = json.listvpcsresponse.vpc
|
||||||
if (vpcAvailable === false) {
|
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||||
this.fetchNetworkOfferingData(false)
|
if (vpcAvailable === false) {
|
||||||
} else {
|
this.fetchNetworkOfferingData(false)
|
||||||
this.fetchNetworkOfferingData()
|
} else {
|
||||||
}
|
this.fetchNetworkOfferingData()
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.fetchNetworkOfferingData(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchNetworkOfferingData (forVpc) {
|
fetchNetworkOfferingData (forVpc) {
|
||||||
|
|||||||
@ -317,15 +317,19 @@ export default {
|
|||||||
} else { // from guest network section
|
} else { // from guest network section
|
||||||
var params = {}
|
var params = {}
|
||||||
this.networkOfferingLoading = true
|
this.networkOfferingLoading = true
|
||||||
api('listVPCs', params).then(json => {
|
if ('listVPCs' in this.$store.getters.apis) {
|
||||||
const listVPCs = json.listvpcsresponse.vpc
|
api('listVPCs', params).then(json => {
|
||||||
var vpcAvailable = this.arrayHasItems(listVPCs)
|
const listVPCs = json.listvpcsresponse.vpc
|
||||||
if (vpcAvailable === false) {
|
var vpcAvailable = this.arrayHasItems(listVPCs)
|
||||||
this.fetchNetworkOfferingData(false)
|
if (vpcAvailable === false) {
|
||||||
} else {
|
this.fetchNetworkOfferingData(false)
|
||||||
this.fetchNetworkOfferingData()
|
} else {
|
||||||
}
|
this.fetchNetworkOfferingData()
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.fetchNetworkOfferingData(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchNetworkOfferingData (forVpc) {
|
fetchNetworkOfferingData (forVpc) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user