mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
updates to look & feel
This commit is contained in:
@@ -167,6 +167,7 @@ const Modules: FC = () => {
|
|||||||
|
|
||||||
const colorStatus = (status: number) => {
|
const colorStatus = (status: number) => {
|
||||||
if (status === 1) {
|
if (status === 1) {
|
||||||
|
// TODO translate
|
||||||
return <div style={{ color: 'red' }}>Pending Activation</div>;
|
return <div style={{ color: 'red' }}>Pending Activation</div>;
|
||||||
}
|
}
|
||||||
return <div style={{ color: '#00FF7F' }}>Activated</div>;
|
return <div style={{ color: '#00FF7F' }}>Activated</div>;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const ModulesDialog = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog sx={dialogStyle} open={open} onClose={onClose}>
|
<Dialog sx={dialogStyle} fullWidth maxWidth="xs" open={open} onClose={onClose}>
|
||||||
<DialogTitle>{LL.EDIT() + ' ' + editItem.key}</DialogTitle>
|
<DialogTitle>{LL.EDIT() + ' ' + editItem.key}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
<Grid container>
|
<Grid container>
|
||||||
@@ -66,15 +66,17 @@ const ModulesDialog = ({
|
|||||||
name="enabled"
|
name="enabled"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label={LL.ACTIVE()}
|
// TODO translate
|
||||||
|
label="Enabled"
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Box mt={1} mb={1}>
|
<Box mt={2} mb={1}>
|
||||||
<TextField
|
<TextField
|
||||||
name="license"
|
name="license"
|
||||||
label="License Key"
|
label="License Key"
|
||||||
multiline
|
multiline
|
||||||
rows={6}
|
rows={6}
|
||||||
|
columns={40}
|
||||||
fullWidth
|
fullWidth
|
||||||
value={editItem.license}
|
value={editItem.license}
|
||||||
onChange={updateFormValue}
|
onChange={updateFormValue}
|
||||||
|
|||||||
@@ -2144,7 +2144,7 @@ let emsesp_modules = {
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"message": "Ready",
|
"message": "Running",
|
||||||
"license": "1234567890"
|
"license": "1234567890"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2155,7 +2155,7 @@ let emsesp_modules = {
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"status": 2,
|
"status": 2,
|
||||||
"message": "Ready",
|
"message": "Running",
|
||||||
"license": "ABCDEFGHIJKL"
|
"license": "ABCDEFGHIJKL"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user