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:
Pearl Dsilva 2024-12-06 13:46:26 -05:00 committed by GitHub
parent 4bf4dafcb3
commit 6157c8f70c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 13 deletions

View File

@ -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 = []
}