diff --git a/FRONTEND/src/components/CardLine.tsx b/FRONTEND/src/components/CardLine.tsx
index bc6ff2a..8a22305 100644
--- a/FRONTEND/src/components/CardLine.tsx
+++ b/FRONTEND/src/components/CardLine.tsx
@@ -10,6 +10,7 @@ import { notifications } from "@mantine/notifications";
import { listBaudDefault } from "../untils/constanst";
import { IconCaretRight } from "@tabler/icons-react";
import { motion } from "motion/react";
+import CopyIcon from "./CopyIcon";
const CardLine = ({
line,
@@ -220,14 +221,17 @@ const CardLine = ({
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
+ if (!line?.inventory?.pid) return;
navigator.clipboard.writeText(
- `PID: ${line?.inventory?.pid || ""} | SN: ${
- line?.inventory?.sn || ""
- }`
+ line?.inventory?.pid || ""
);
}}
className={`${classes.info_line} ${classes.buttonCopy}`}
fs={"italic"}
+ style={{
+ opacity: line?.inventory?.pid ? 1 : 0.5,
+ cursor: line?.inventory?.pid ? "pointer" : "default",
+ }}
>
{line?.inventory?.pid || ""}
@@ -238,6 +242,14 @@ const CardLine = ({
) : (
""
)}
+ {line?.inventory?.pid && (
+