tidy up rename buttons

This commit is contained in:
proddy
2024-10-27 10:47:23 +01:00
parent d440e6dc9a
commit 4fdf1d810e

View File

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