green execute button

This commit is contained in:
proddy
2026-06-08 21:04:19 +02:00
parent 8fb69826f9
commit ff90662be1
2 changed files with 6 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ const CommandsPage = () => {
name: ci.name
}))
});
toast.success(LL.UPDATED_OF(LL.COMMANDS(0)));
toast.success(LL.UPDATED_OF(LL.COMMANDS()));
} catch (error: unknown) {
const message = error instanceof Error ? error.message : String(error);
toast.error(message);

View File

@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
import { toast } from 'react-toastify';
import CancelIcon from '@mui/icons-material/Cancel';
import PlayArrowIcon from '@mui/icons-material/PlayArrow';
import WarningIcon from '@mui/icons-material/Warning';
import {
Box,
@@ -226,10 +227,12 @@ const DevicesDialog = ({
{LL.CANCEL()}
</Button>
<Button
startIcon={<WarningIcon color="warning" />}
startIcon={
isCommand ? <PlayArrowIcon /> : <WarningIcon color="warning" />
}
variant="outlined"
onClick={doAction}
color="primary"
color={isCommand ? 'success' : 'primary'}
>
{buttonLabel}
</Button>