mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Address review feedback.
This commit is contained in:
@@ -43,5 +43,4 @@ const ContentLoading = ({ className, progress }) => (
|
|||||||
</EmptyState>
|
</EmptyState>
|
||||||
);
|
);
|
||||||
|
|
||||||
export { ContentLoading as _ContentLoading };
|
|
||||||
export default ContentLoading;
|
export default ContentLoading;
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ import {
|
|||||||
redirectToDetailsPage,
|
redirectToDetailsPage,
|
||||||
getHeight,
|
getHeight,
|
||||||
getWidth,
|
getWidth,
|
||||||
// generateRandomNodes,
|
|
||||||
// getRandomInt,
|
|
||||||
} from './utils/helpers';
|
} from './utils/helpers';
|
||||||
import webWorker from '../../util/webWorker';
|
import webWorker from '../../util/webWorker';
|
||||||
import {
|
import {
|
||||||
@@ -34,14 +32,12 @@ const Loader = styled(ContentLoading)`
|
|||||||
background: white;
|
background: white;
|
||||||
`;
|
`;
|
||||||
function MeshGraph({ data, showLegend, zoom, setShowZoomControls }) {
|
function MeshGraph({ data, showLegend, zoom, setShowZoomControls }) {
|
||||||
// function MeshGraph({ showLegend, zoom }) {
|
|
||||||
const [isNodeSelected, setIsNodeSelected] = useState(false);
|
const [isNodeSelected, setIsNodeSelected] = useState(false);
|
||||||
const [selectedNode, setSelectedNode] = useState(null);
|
const [selectedNode, setSelectedNode] = useState(null);
|
||||||
const [nodeDetail, setNodeDetail] = useState(null);
|
const [nodeDetail, setNodeDetail] = useState(null);
|
||||||
const [simulationProgress, setSimulationProgress] = useState(null);
|
const [simulationProgress, setSimulationProgress] = useState(null);
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
// const data = generateRandomNodes(getRandomInt(4, 50));
|
|
||||||
const draw = () => {
|
const draw = () => {
|
||||||
setShowZoomControls(false);
|
setShowZoomControls(false);
|
||||||
const width = getWidth(SELECTOR);
|
const width = getWidth(SELECTOR);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export function renderNodeIcon(selectedNode) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function redirectToDetailsPage(selectedNode, history) {
|
export function redirectToDetailsPage(selectedNode, history) {
|
||||||
const { id: nodeId } = selectedNode;
|
const { id: nodeId } = selectedNode;
|
||||||
const constructedURL = `/instances/${nodeId}/details`;
|
const constructedURL = `/instances/${nodeId}/details`;
|
||||||
history.push(constructedURL);
|
history.push(constructedURL);
|
||||||
|
|||||||
Reference in New Issue
Block a user