chore(frontend): block access to offline devices

This commit is contained in:
Leandro Antônio Farias Machado 2023-06-08 11:32:06 -03:00
parent 609ec53790
commit b7ed87c5af

View File

@ -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>