Skip to content

Commit

Permalink
added options toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Mar 17, 2022
1 parent 167e4b7 commit 53122b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/src/components/netflow-topology/netflow-topology.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Bullseye, EmptyState, EmptyStateBody, EmptyStateVariant, Spinner, Title } from '@patternfly/react-core';
import { CogIcon } from '@patternfly/react-icons';
import {
createTopologyControlButtons,
defaultControlButtonsOptions,
Expand Down Expand Up @@ -149,6 +150,16 @@ const NetflowTopology: React.FC<{
<TopologyControlBar
controlButtons={createTopologyControlButtons({
...defaultControlButtonsOptions,
customButtons: [
{
id: 'options',
icon: <CogIcon />,
tooltip: t('More options'),
callback: () => {
toggleTopologyOptions();
}
}
],
zoomInCallback: () => {
controller.getGraph().scaleBy(4 / 3);
},
Expand Down

0 comments on commit 53122b0

Please sign in to comment.