mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
Add legend toggle to header.
This commit is contained in:
@@ -8,7 +8,7 @@ import Legend from './Legend';
|
||||
import Tooltip from './Tooltip';
|
||||
|
||||
// function MeshGraph({ data }) {
|
||||
function MeshGraph() {
|
||||
function MeshGraph({ showLegend }) {
|
||||
const [isNodeSelected, setIsNodeSelected] = useState(false);
|
||||
const [selectedNode, setSelectedNode] = useState(null);
|
||||
const [nodeDetail, setNodeDetail] = useState(null);
|
||||
@@ -517,7 +517,7 @@ function MeshGraph() {
|
||||
|
||||
return (
|
||||
<div id="chart" style={{ position: 'relative' }}>
|
||||
<Legend />
|
||||
{showLegend && <Legend />}
|
||||
<Tooltip
|
||||
isNodeSelected={isNodeSelected}
|
||||
renderNodeIcon={renderNodeIcon}
|
||||
|
||||
Reference in New Issue
Block a user