Nút copy all pid+sn: Đổi format copy

This commit is contained in:
Truong Vo 2025-12-03 08:49:09 +07:00
parent b9fbb3f7b7
commit ae01929bf2
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ const CardLine = ({
)}
{line?.inventory?.pid && line?.inventory?.sn && (
<CopyIcon
value={`${line.inventory?.pid} ${line.inventory?.sn}`}
value={`Line ${line.lineNumber || line.line_number || ""}: ${line.inventory?.pid}${line.inventory?.vid ? ` ${line.inventory.vid}` : ""} - ${line.inventory?.sn}`}
label="Copy PID + SN"
copiedLabel="Copied PID + SN"
color="grape"

View File

@ -542,7 +542,7 @@ const ModalTerminal = ({
<CopyIcon
value={
line?.inventory?.pid && line?.inventory?.sn
? `${line.inventory?.pid} ${line.inventory?.sn}`
? `Line ${line?.lineNumber || line?.line_number || ""}: ${line.inventory?.pid}${line.inventory?.vid ? ` ${line.inventory.vid}` : ""} - ${line.inventory?.sn}`
: ""
}
label="Copy PID + SN"