Skip to content

Commit

Permalink
removed topology feature gate (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored May 2, 2022
1 parent 2c97fe8 commit 4502513
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions web/src/components/netflow-traffic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import { DefaultOptions, LayoutName, TopologyOptions } from '../model/topology';
import { Column, getDefaultColumns } from '../utils/columns';
import { TimeRange } from '../utils/datetime';
import { getHTTPErrorDetails } from '../utils/errors';
import { Feature, isAllowed } from '../utils/features-gate';
import { Filter } from '../model/filters';
import {
LOCAL_STORAGE_COLS_KEY,
Expand Down Expand Up @@ -285,24 +284,22 @@ export const NetflowTraffic: React.FC<{

const viewToggle = () => {
return (
isAllowed(Feature.Topology) && (
<ToggleGroup>
<ToggleGroupItem
icon={<TableIcon />}
text={t('Flow Table')}
buttonId="tableViewButton"
isSelected={selectedViewId === 'table'}
onChange={() => selectView('table')}
/>
<ToggleGroupItem
icon={<TopologyIcon />}
text={t('Topology')}
buttonId="topologyViewButton"
isSelected={selectedViewId === 'topology'}
onChange={() => selectView('topology')}
/>
</ToggleGroup>
)
<ToggleGroup>
<ToggleGroupItem
icon={<TableIcon />}
text={t('Flow Table')}
buttonId="tableViewButton"
isSelected={selectedViewId === 'table'}
onChange={() => selectView('table')}
/>
<ToggleGroupItem
icon={<TopologyIcon />}
text={t('Topology')}
buttonId="topologyViewButton"
isSelected={selectedViewId === 'topology'}
onChange={() => selectView('topology')}
/>
</ToggleGroup>
);
};

Expand Down

0 comments on commit 4502513

Please sign in to comment.