mirror of
https://github.com/openziti/zrok.git
synced 2025-01-19 04:19:18 +01:00
improvements to selection handling (#819, #823); side panel only consumes layout space when selected (#804)
This commit is contained in:
parent
cba3b95217
commit
70a1a43a9a
@ -139,8 +139,6 @@ const ApiConsole = ({ logout }: ApiConsoleProps) => {
|
||||
}
|
||||
}, [selectedNode]);
|
||||
|
||||
let wrappedSidePanel = sidePanel ? <Grid2 size={4}>{sidePanel}</Grid2> : null;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<NavBar logout={logout} />
|
||||
@ -148,7 +146,7 @@ const ApiConsole = ({ logout }: ApiConsoleProps) => {
|
||||
<Grid2 size="grow">
|
||||
{mainPanel}
|
||||
</Grid2>
|
||||
{wrappedSidePanel}
|
||||
{sidePanel ? <Grid2 size={4}>{sidePanel}</Grid2> : null}
|
||||
</Grid2>
|
||||
</div>
|
||||
);
|
||||
|
@ -26,7 +26,6 @@ const TabularView = () => {
|
||||
|
||||
useEffect(() => {
|
||||
let sn = nodes.find(node => Object.keys(rowSelection).includes(node.id));
|
||||
console.log("sn", sn);
|
||||
updateSelectedNode(sn);
|
||||
updateNodes(nodes.map(node => (sn && node.id === sn.id) ? { ...node, selected: true } : { ...node, selected: false }));
|
||||
}, [rowSelection]);
|
||||
|
Loading…
Reference in New Issue
Block a user