feat(frontend): wifi channels
This commit is contained in:
parent
36b57b8f21
commit
868a97f9d5
|
|
@ -159,6 +159,30 @@ export const DevicesWiFi = () => {
|
||||||
console.log("applyContent: ", applyContent)
|
console.log("applyContent: ", applyContent)
|
||||||
}}
|
}}
|
||||||
/>}
|
/>}
|
||||||
|
{item.channel?.value != null && item.possibleChannels?.value != null &&
|
||||||
|
<FormControl variant='filled'>
|
||||||
|
<InputLabel id="channel">Channel</InputLabel>
|
||||||
|
<Select
|
||||||
|
fullWidth
|
||||||
|
defaultValue={item.channel.value}
|
||||||
|
value={item.channel.value}
|
||||||
|
onChange={(e) => {
|
||||||
|
applyContent[index].hasChanges = true
|
||||||
|
applyContent[index].channel = {
|
||||||
|
value: e.target.value
|
||||||
|
}
|
||||||
|
setApplyContent([...applyContent])
|
||||||
|
item.channel.value = e.target.value
|
||||||
|
}}
|
||||||
|
label="Channel"
|
||||||
|
>
|
||||||
|
{item.possibleChannels.value.map((channel, index) => {
|
||||||
|
return (
|
||||||
|
<MenuItem key={index} value={channel}>{channel}</MenuItem>)
|
||||||
|
})}
|
||||||
|
</Select>
|
||||||
|
</FormControl>
|
||||||
|
}
|
||||||
{item.standard.value != null &&
|
{item.standard.value != null &&
|
||||||
<TextField
|
<TextField
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user