warning message formatting so its same as Dashboard

This commit is contained in:
proddy
2025-11-18 21:37:55 +01:00
parent 901a27140c
commit 5454e7dd16

View File

@@ -533,6 +533,9 @@ const Devices = memo(() => {
const renderCoreData = () => ( const renderCoreData = () => (
<> <>
{!coreData.connected ? (
<MessageBox level="error" message={LL.EMS_BUS_WARNING()} />
) : (
<Box justifyContent="center" flexDirection="column"> <Box justifyContent="center" flexDirection="column">
<IconContext.Provider <IconContext.Provider
value={{ value={{
@@ -541,11 +544,6 @@ const Devices = memo(() => {
style: { verticalAlign: 'middle' } style: { verticalAlign: 'middle' }
}} }}
> >
{!coreData.connected && (
<MessageBox my={2} level="error" message={LL.EMS_BUS_WARNING()} />
)}
{coreData.connected && (
<Table <Table
data={{ nodes: [...coreData.devices] }} data={{ nodes: [...coreData.devices] }}
select={device_select} select={device_select}
@@ -581,9 +579,9 @@ const Devices = memo(() => {
</> </>
)} )}
</Table> </Table>
)}
</IconContext.Provider> </IconContext.Provider>
</Box> </Box>
)}
</> </>
); );