mirror of https://github.com/apache/cloudstack.git
Revert UI filtration for public IPs (#29)
* Fix issue with pagination of public addresses listed after filtering for external providers * Revert UI filteration for public IPs for external network provider enabled zones
This commit is contained in:
parent
4bf4dafcb3
commit
6157c8f70c
|
|
@ -1001,19 +1001,6 @@ export default {
|
|||
}
|
||||
|
||||
this.items = json[responseName][objectName]
|
||||
var filteredItems = []
|
||||
if (this.apiName === 'listPublicIpAddresses') {
|
||||
for (var zone of this.$store.getters.zones) {
|
||||
const zoneIps = this.items.filter(item => item.zoneid === zone.id)
|
||||
const providerIps = zoneIps.filter(item => item.forprovider === true)
|
||||
if (providerIps.length === 0) {
|
||||
filteredItems.push(...zoneIps)
|
||||
} else {
|
||||
filteredItems.push(...providerIps)
|
||||
}
|
||||
}
|
||||
this.items = filteredItems
|
||||
}
|
||||
if (!this.items || this.items.length === 0) {
|
||||
this.items = []
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue