Pearl1594 commented on code in PR #8308:
URL: https://github.com/apache/cloudstack/pull/8308#discussion_r1418142107
##########
ui/src/views/network/PublicIpResource.vue:
##########
@@ -136,17 +146,22 @@ export default {
// VPC IPs don't have firewall
let tabs = this.$route.meta.tabs.filter(tab => tab.name !== 'firewall')
+ if (this.resource.networkofferingconservemode) {
+ this.tabs = tabs
+ return
+ }
+
this.portFWRuleCount = await this.fetchPortFWRule()
this.loadBalancerRuleCount = await this.fetchLoadBalancerRule()
// VPC IPs with PF only have PF
if (this.portFWRuleCount > 0) {
- tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab =>
tab.name === 'portforwarding'))
+ tabs = tabs.filter(tab => tab.name !== 'loadbalancing')
}
// VPC IPs with LB rules only have LB
if (this.loadBalancerRuleCount > 0) {
- tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab =>
tab.name === 'loadbalancing'))
+ tabs = tabs.filter(tab => tab.name !== 'portforwarding')
Review Comment:
same here.. unless I haven't understood it right..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]