mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
don't show confusing release type checkboxes
This commit is contained in:
@@ -511,48 +511,11 @@ const Version = () => {
|
|||||||
<Grid size={{ xs: 4, md: 2 }}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
<Typography color="secondary">{LL.RELEASE_TYPE()}</Typography>
|
<Typography color="secondary">{LL.RELEASE_TYPE()}</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={{ xs: 8, md: 10 }}>
|
{isDev ? (
|
||||||
<FormControlLabel
|
<Typography>{LL.DEVELOPMENT()}</Typography>
|
||||||
disabled={!isDev}
|
) : (
|
||||||
control={
|
<Typography>{LL.STABLE()}</Typography>
|
||||||
<Checkbox
|
)}
|
||||||
sx={{
|
|
||||||
'&.Mui-checked': {
|
|
||||||
color: 'lightblue'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
slotProps={{
|
|
||||||
typography: {
|
|
||||||
color: 'grey'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
checked={!isDev}
|
|
||||||
label={LL.STABLE()}
|
|
||||||
sx={{ '& .MuiSvgIcon-root': { fontSize: 16 } }}
|
|
||||||
/>
|
|
||||||
<FormControlLabel
|
|
||||||
disabled={isDev}
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
sx={{
|
|
||||||
'&.Mui-checked': {
|
|
||||||
color: 'lightblue'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
slotProps={{
|
|
||||||
typography: {
|
|
||||||
color: 'grey'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
checked={isDev}
|
|
||||||
label={LL.DEVELOPMENT()}
|
|
||||||
sx={{ '& .MuiSvgIcon-root': { fontSize: 16 } }}
|
|
||||||
/>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
{internetLive ? (
|
{internetLive ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user