fix(frontend): click area to get device data
This commit is contained in:
parent
a298fe0c3a
commit
d36df6c9f3
|
|
@ -97,14 +97,14 @@ export const OverviewLatestOrders = (props) => {
|
|||
</SeverityPill>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
{ order.Mqtt == 0 && order.Websockets == 0 && order.Stomp == 0 ? <span></span>: <Button>
|
||||
<SvgIcon
|
||||
fontSize="small"
|
||||
sx={{cursor: order.Status == 2 && 'pointer'}}
|
||||
{ order.Mqtt == 0 && order.Websockets == 0 && order.Stomp == 0 ? <span></span>: <Button
|
||||
onClick={()=>{
|
||||
router.push("devices/"+order.SN+"/discovery")
|
||||
}
|
||||
}
|
||||
}>
|
||||
<SvgIcon
|
||||
fontSize="small"
|
||||
sx={{cursor: order.Status == 2 && 'pointer'}}
|
||||
>
|
||||
<ArrowTopRightOnSquareIcon />
|
||||
</SvgIcon></Button>}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user