mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
@@ -464,14 +464,7 @@ const Customizations = () => {
|
|||||||
)}
|
)}
|
||||||
{selectedDevice !== -1 &&
|
{selectedDevice !== -1 &&
|
||||||
(rename ? (
|
(rename ? (
|
||||||
<ButtonRow>
|
<>
|
||||||
<Button
|
|
||||||
startIcon={<SaveIcon />}
|
|
||||||
variant="contained"
|
|
||||||
onClick={() => renameDevice()}
|
|
||||||
>
|
|
||||||
{LL.UPDATE()}
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
startIcon={<CancelIcon />}
|
startIcon={<CancelIcon />}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
@@ -480,7 +473,14 @@ const Customizations = () => {
|
|||||||
>
|
>
|
||||||
{LL.CANCEL()}
|
{LL.CANCEL()}
|
||||||
</Button>
|
</Button>
|
||||||
</ButtonRow>
|
<Button
|
||||||
|
startIcon={<SaveIcon />}
|
||||||
|
variant="outlined"
|
||||||
|
onClick={() => renameDevice()}
|
||||||
|
>
|
||||||
|
{LL.RENAME()}
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
startIcon={<EditIcon />}
|
startIcon={<EditIcon />}
|
||||||
@@ -716,6 +716,7 @@ const Customizations = () => {
|
|||||||
</ButtonRow>
|
</ButtonRow>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
{!rename && (
|
||||||
<ButtonRow mt={1}>
|
<ButtonRow mt={1}>
|
||||||
<Button
|
<Button
|
||||||
startIcon={<SettingsBackupRestoreIcon />}
|
startIcon={<SettingsBackupRestoreIcon />}
|
||||||
@@ -726,6 +727,7 @@ const Customizations = () => {
|
|||||||
{LL.RESET(0)}
|
{LL.RESET(0)}
|
||||||
</Button>
|
</Button>
|
||||||
</ButtonRow>
|
</ButtonRow>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
{renderResetDialog()}
|
{renderResetDialog()}
|
||||||
|
|||||||
@@ -11,9 +11,11 @@ import {
|
|||||||
DialogActions,
|
DialogActions,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
|
Divider,
|
||||||
Link,
|
Link,
|
||||||
Typography
|
Typography
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
|
import Grid from '@mui/material/Grid2';
|
||||||
|
|
||||||
import * as SystemApi from 'api/system';
|
import * as SystemApi from 'api/system';
|
||||||
import { callAction } from 'api/app';
|
import { callAction } from 'api/app';
|
||||||
@@ -182,43 +184,55 @@ const Version = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography variant="h6" color="primary">
|
<Box p={2} border="1px solid grey" borderRadius={2}>
|
||||||
Firmware Version Check
|
<Grid container spacing={3}>
|
||||||
|
<Grid mb={1}>
|
||||||
|
<Typography mb={1} fontWeight={'fontWeightBold'}>
|
||||||
|
{LL.VERSION()}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<Typography mb={1} fontWeight={'fontWeightBold'}>
|
||||||
<Box p={2} mt={2} border="1px solid grey" borderRadius={2}>
|
Platform
|
||||||
<Typography>
|
</Typography>
|
||||||
<b>{LL.VERSION() + ':'}</b> {data.emsesp_version}
|
<Typography mb={1} fontWeight={'fontWeightBold'}>
|
||||||
|
Release
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
<Grid>
|
||||||
|
<Typography mb={1}>
|
||||||
|
{data.emsesp_version}
|
||||||
{data.build_flags && (
|
{data.build_flags && (
|
||||||
<Typography variant="caption">
|
<Typography variant="caption">
|
||||||
({data.build_flags})
|
({data.build_flags})
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<Typography mb={1}>{getPlatform()}</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
<b>Platform:</b> {getPlatform()}
|
{isDev ? LL.DEVELOPMENT() : LL.STABLE()}
|
||||||
</Typography>
|
|
||||||
|
|
||||||
<Typography>
|
|
||||||
<b>Release:</b>
|
|
||||||
<Link
|
<Link
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={useDev ? DEV_RELNOTES_URL : STABLE_RELNOTES_URL}
|
href={useDev ? DEV_RELNOTES_URL : STABLE_RELNOTES_URL}
|
||||||
color="primary"
|
color="primary"
|
||||||
>
|
>
|
||||||
{isDev ? LL.DEVELOPMENT() : LL.STABLE()}
|
(changelog)
|
||||||
</Link>
|
</Link>
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Divider />
|
||||||
|
|
||||||
{!isDev && (
|
{!isDev && (
|
||||||
<Button
|
<Button
|
||||||
sx={{ ml: 2 }}
|
sx={{ mt: 2 }}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="small"
|
||||||
onClick={() => showFirmwareDialog(true)}
|
onClick={() => showFirmwareDialog(true)}
|
||||||
>
|
>
|
||||||
{LL.SWITCH_DEV()}
|
{LL.SWITCH_DEV()}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
|
||||||
|
|
||||||
<Typography mt={2} color="warning">
|
<Typography mt={2} color="warning">
|
||||||
<InfoOutlinedIcon color="warning" sx={{ verticalAlign: 'middle' }} />
|
<InfoOutlinedIcon color="warning" sx={{ verticalAlign: 'middle' }} />
|
||||||
@@ -231,6 +245,7 @@ const Version = () => {
|
|||||||
sx={{ ml: 2, textTransform: 'none' }}
|
sx={{ ml: 2, textTransform: 'none' }}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
size="small"
|
||||||
onClick={() => showFirmwareDialog(false)}
|
onClick={() => showFirmwareDialog(false)}
|
||||||
>
|
>
|
||||||
{isDev
|
{isDev
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ const en: Translation = {
|
|||||||
CUSTOMIZATIONS_RESTART: 'All customizations have been removed. Restarting...',
|
CUSTOMIZATIONS_RESTART: 'All customizations have been removed. Restarting...',
|
||||||
CUSTOMIZATIONS_FULL: 'Selected entities exceeded limit. Please save in batches',
|
CUSTOMIZATIONS_FULL: 'Selected entities exceeded limit. Please save in batches',
|
||||||
CUSTOMIZATIONS_SAVED: 'Customizations saved',
|
CUSTOMIZATIONS_SAVED: 'Customizations saved',
|
||||||
CUSTOMIZATIONS_HELP_1: 'Select a device and customize the entities options or click to rename',
|
CUSTOMIZATIONS_HELP_1: 'Select a device and customize the entities options',
|
||||||
CUSTOMIZATIONS_HELP_2: 'mark as favorite',
|
CUSTOMIZATIONS_HELP_2: 'mark as favorite',
|
||||||
CUSTOMIZATIONS_HELP_3: 'disable write action',
|
CUSTOMIZATIONS_HELP_3: 'disable write action',
|
||||||
CUSTOMIZATIONS_HELP_4: 'exclude from MQTT and API',
|
CUSTOMIZATIONS_HELP_4: 'exclude from MQTT and API',
|
||||||
|
|||||||
@@ -202,8 +202,8 @@ function check_upgrade(version: string) {
|
|||||||
console.log('check upgrade from version', version);
|
console.log('check upgrade from version', version);
|
||||||
data = {
|
data = {
|
||||||
emsesp_version: VERSION,
|
emsesp_version: VERSION,
|
||||||
upgradeable: true
|
// upgradeable: true
|
||||||
// upgradeable: false,
|
upgradeable: false
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
console.log('requesting ems-esp version');
|
console.log('requesting ems-esp version');
|
||||||
|
|||||||
Reference in New Issue
Block a user