fix: Remove pfw tab from fip detail page
remove the pfw tab in an environment where pfw service is not deployed Change-Id: Ibc0e3c28e1ef34097818aea5be432d01208d384a
This commit is contained in:
parent
b4e1789027
commit
7b2ad4de84
@ -17,6 +17,7 @@ import Base from 'containers/TabDetail';
|
||||
import { floatingIpStatus } from 'resources/floatingip';
|
||||
import { FloatingIpStore } from 'stores/neutron/floatingIp';
|
||||
import { isNull } from 'lodash';
|
||||
import { enablePFW } from 'resources/neutron';
|
||||
import actionConfigs from '../actions';
|
||||
import BaseDetail from './BaseDetail';
|
||||
import PortForwarding from './PortForwarding';
|
||||
@ -76,7 +77,7 @@ export class FloatingIpDetail extends Base {
|
||||
component: BaseDetail,
|
||||
},
|
||||
];
|
||||
if (isNull(this.detailData.fixed_ip_address)) {
|
||||
if (enablePFW() && isNull(this.detailData.fixed_ip_address)) {
|
||||
tabs.push({
|
||||
title: t('Port Forwarding Rules'),
|
||||
key: 'port_forwarding_rules',
|
||||
|
Loading…
Reference in New Issue
Block a user