mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
warning message formatting so its same as Dashboard
This commit is contained in:
@@ -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>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user