fix(frontend): feedback when no connected devices were found
This commit is contained in:
parent
641aae883b
commit
6bdc0f549e
|
|
@ -52,7 +52,7 @@ export const ConnectedDevices = () => {
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
alignItems={!content &&"center"}
|
alignItems={(!content || interfaces.length == 0) &&"center"}
|
||||||
>
|
>
|
||||||
{content && interfaces.length > 0 ?
|
{content && interfaces.length > 0 ?
|
||||||
<Card>
|
<Card>
|
||||||
|
|
@ -109,7 +109,9 @@ export const ConnectedDevices = () => {
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>: <CircularProgress/>}
|
</Card>: (
|
||||||
|
content ? <Typography> No connected devices found </Typography> : <CircularProgress/>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user