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