updates to look & feel

This commit is contained in:
proddy
2024-06-09 14:03:11 +02:00
parent a1d61b4422
commit 8783267e18
3 changed files with 8 additions and 5 deletions

View File

@@ -167,6 +167,7 @@ const Modules: FC = () => {
const colorStatus = (status: number) => {
if (status === 1) {
// TODO translate
return <div style={{ color: 'red' }}>Pending Activation</div>;
}
return <div style={{ color: '#00FF7F' }}>Activated</div>;

View File

@@ -54,7 +54,7 @@ const ModulesDialog = ({
};
return (
<Dialog sx={dialogStyle} open={open} onClose={onClose}>
<Dialog sx={dialogStyle} fullWidth maxWidth="xs" open={open} onClose={onClose}>
<DialogTitle>{LL.EDIT() + ' ' + editItem.key}</DialogTitle>
<DialogContent dividers>
<Grid container>
@@ -66,15 +66,17 @@ const ModulesDialog = ({
name="enabled"
/>
}
label={LL.ACTIVE()}
// TODO translate
label="Enabled"
/>
</Grid>
<Box mt={1} mb={1}>
<Box mt={2} mb={1}>
<TextField
name="license"
label="License Key"
multiline
rows={6}
columns={40}
fullWidth
value={editItem.license}
onChange={updateFormValue}

View File

@@ -2144,7 +2144,7 @@ let emsesp_modules = {
"version": "1.0.0",
"enabled": true,
"status": 1,
"message": "Ready",
"message": "Running",
"license": "1234567890"
},
{
@@ -2155,7 +2155,7 @@ let emsesp_modules = {
"version": "1.0.0",
"enabled": true,
"status": 2,
"message": "Ready",
"message": "Running",
"license": "ABCDEFGHIJKL"
}