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) => { 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>;

View File

@@ -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}

View File

@@ -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"
} }