Nút copy all pid+sn: Đổi format copy
This commit is contained in:
parent
b9fbb3f7b7
commit
ae01929bf2
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue