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
|
<SvgIcon
|
||||||
fontSize="small"
|
fontSize="small"
|
||||||
sx={{cursor:'pointer'}}
|
sx={{cursor:'pointer'}}
|
||||||
onClick={()=>router.push("devices/"+order.SN)}
|
onClick={()=>{
|
||||||
|
if (order.Status !== 2){
|
||||||
|
router.push("devices/"+order.SN)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<ArrowTopRightOnSquareIcon />
|
<ArrowTopRightOnSquareIcon />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user