chore(frontend): block access to offline devices
This commit is contained in:
parent
609ec53790
commit
b7ed87c5af
|
|
@ -100,7 +100,12 @@ export const OverviewLatestOrders = (props) => {
|
|||
<SvgIcon
|
||||
fontSize="small"
|
||||
sx={{cursor:'pointer'}}
|
||||
onClick={()=>router.push("devices/"+order.SN)}
|
||||
onClick={()=>{
|
||||
if (order.Status !== 2){
|
||||
router.push("devices/"+order.SN)
|
||||
}
|
||||
}
|
||||
}
|
||||
>
|
||||
<ArrowTopRightOnSquareIcon />
|
||||
</SvgIcon>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user