fea(frontend): wifi actions only for cwmp device | closes #259
This commit is contained in:
parent
0e86174222
commit
cb38389d46
|
|
@ -25,8 +25,8 @@ const Page = () => {
|
||||||
return <DevicesRPC/>
|
return <DevicesRPC/>
|
||||||
case "discovery":
|
case "discovery":
|
||||||
return <DevicesDiscovery/>
|
return <DevicesDiscovery/>
|
||||||
case "wifi":
|
// case "wifi":
|
||||||
return <DevicesWiFi/>
|
// return <DevicesWiFi/>
|
||||||
default:
|
default:
|
||||||
return <p>Hello World</p>
|
return <p>Hello World</p>
|
||||||
}
|
}
|
||||||
|
|
@ -58,7 +58,7 @@ const Page = () => {
|
||||||
}}
|
}}
|
||||||
mb={3}>
|
mb={3}>
|
||||||
<Tabs value={router.query.id[1]} aria-label="icon label tabs example">
|
<Tabs value={router.query.id[1]} aria-label="icon label tabs example">
|
||||||
<Tab icon={<SvgIcon><WifiIcon/></SvgIcon>} iconPosition={"end"} label="Wi-Fi" onClick={()=>{router.push(`/devices/usp/${deviceID}/wifi`)}} value={"wifi"}/>
|
{/* <Tab icon={<SvgIcon><WifiIcon/></SvgIcon>} iconPosition={"end"} label="Wi-Fi" onClick={()=>{router.push(`/devices/usp/${deviceID}/wifi`)}} value={"wifi"}/> */}
|
||||||
<Tab value={"discovery"} onClick={()=>{router.push(`/devices/usp/${deviceID}/discovery`)}} icon={<SvgIcon><MagnifyingGlassIcon/></SvgIcon>} iconPosition={"end"} label="Discover Parameters" />
|
<Tab value={"discovery"} onClick={()=>{router.push(`/devices/usp/${deviceID}/discovery`)}} icon={<SvgIcon><MagnifyingGlassIcon/></SvgIcon>} iconPosition={"end"} label="Discover Parameters" />
|
||||||
<Tab value={"msg"} onClick={()=>{router.push(`/devices/usp/${deviceID}/msg`)}} icon={<SvgIcon><EnvelopeIcon/></SvgIcon>} iconPosition={"end"} label="Remote Messages" />
|
<Tab value={"msg"} onClick={()=>{router.push(`/devices/usp/${deviceID}/msg`)}} icon={<SvgIcon><EnvelopeIcon/></SvgIcon>} iconPosition={"end"} label="Remote Messages" />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ const handleOpen = () => {
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
value={value}
|
value={value}
|
||||||
fullWidth
|
fullWidth
|
||||||
rows="9"
|
rows="15"
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,11 @@ export const OverviewLatestOrders = (props) => {
|
||||||
{order.Status == 2 &&
|
{order.Status == 2 &&
|
||||||
<Button
|
<Button
|
||||||
onClick={()=>{
|
onClick={()=>{
|
||||||
router.push("devices/"+ getDeviceProtocol(order) +"/"+order.SN+"/wifi")
|
if (getDeviceProtocol(order) == "usp"){
|
||||||
|
router.push("devices/"+ getDeviceProtocol(order) +"/"+order.SN+"/discovery")
|
||||||
|
}else {
|
||||||
|
router.push("devices/"+ getDeviceProtocol(order) +"/"+order.SN+"/wifi")
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SvgIcon
|
<SvgIcon
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user