This commit is contained in:
Harikrishna Patnala 2026-05-07 15:04:18 +05:30
parent 63d8160c26
commit b26e492561
1 changed files with 5 additions and 0 deletions

View File

@ -151,12 +151,17 @@ export default {
if (this.resource.isstaticnat) {
if (this.resource.virtualmachinetype === 'DomainRouter') {
this.tabs = this.defaultTabs.concat(this.$route.meta.tabs.filter(tab => ['vpn', 'firewall'].includes(tab.name)))
} else {
this.tabs = this.defaultTabs
}
return
}
// VPC IPs have all tabs, but firewall only if associatednetworkid present
let tabs = this.$route.meta.tabs
if (!this.resource.associatednetworkid) {
tabs = tabs.filter(tab => tab.name !== 'firewall')
}
const network = await this.fetchNetwork()
if (network && network.networkofferingconservemode) {