Skip to content

Commit 6157c8f

Browse files
authored
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
1 parent 4bf4daf commit 6157c8f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ui/src/views/AutogenView.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,19 +1001,6 @@ export default {
10011001
}
10021002
10031003
this.items = json[responseName][objectName]
1004-
var filteredItems = []
1005-
if (this.apiName === 'listPublicIpAddresses') {
1006-
for (var zone of this.$store.getters.zones) {
1007-
const zoneIps = this.items.filter(item => item.zoneid === zone.id)
1008-
const providerIps = zoneIps.filter(item => item.forprovider === true)
1009-
if (providerIps.length === 0) {
1010-
filteredItems.push(...zoneIps)
1011-
} else {
1012-
filteredItems.push(...providerIps)
1013-
}
1014-
}
1015-
this.items = filteredItems
1016-
}
10171004
if (!this.items || this.items.length === 0) {
10181005
this.items = []
10191006
}

0 commit comments

Comments
 (0)