fix: machine profile page changes
This commit is contained in:
parent
a5a869a734
commit
debb9ecafd
4 changed files with 46 additions and 14 deletions
|
|
@ -53,8 +53,10 @@ const MachinesTable = ({ machines, numToRender }) => {
|
|||
return <TL2>{`${percent}%`}</TL2>
|
||||
}
|
||||
|
||||
const redirect = name => {
|
||||
return history.push('/machines', { selectedMachine: name })
|
||||
const redirect = ({ name, deviceId }) => {
|
||||
return history.push('/machines/' + `${deviceId}`, {
|
||||
selectedMachine: name
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -96,7 +98,7 @@ const MachinesTable = ({ machines, numToRender }) => {
|
|||
if (idx < numToRender) {
|
||||
return (
|
||||
<TableRow
|
||||
onClick={() => redirect(machine.name)}
|
||||
onClick={() => redirect(machine)}
|
||||
className={classnames(classes.row, classes.clickableRow)}
|
||||
key={machine.deviceId + idx}>
|
||||
<StyledCell align="left">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue