feat: Add copy device_uuid
functionality
This commit is contained in:
@ -5,7 +5,7 @@ import TableContainer from "@mui/material/TableContainer";
|
|||||||
import TableHead from "@mui/material/TableHead";
|
import TableHead from "@mui/material/TableHead";
|
||||||
import TableRow from "@mui/material/TableRow";
|
import TableRow from "@mui/material/TableRow";
|
||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
import { Check, RotateCcw, X } from "lucide-react";
|
import { Check, Copy, RotateCcw, X } from "lucide-react";
|
||||||
import {
|
import {
|
||||||
authInstance,
|
authInstance,
|
||||||
devicesStore,
|
devicesStore,
|
||||||
@ -413,6 +413,14 @@ export const DevicesTable = observer(() => {
|
|||||||
>
|
>
|
||||||
<RotateCcw size={16} />
|
<RotateCcw size={16} />
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
navigator.clipboard.writeText(row.device_uuid ?? "");
|
||||||
|
toast.success("UUID скопирован");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Copy size={16} />
|
||||||
|
</Button>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))}
|
))}
|
||||||
|
Reference in New Issue
Block a user