mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-05 20:02:05 +00:00
Show acceptance status in dispatch detail modal
- Accepted field shows green timestamp when acknowledged - Shows "Awaiting acceptance" in yellow when status is Sent
This commit is contained in:
parent
62bc2f058c
commit
5dcfc9d303
2 changed files with 16 additions and 0 deletions
|
|
@ -734,6 +734,12 @@
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dispatchWaiting {
|
||||||
|
color: #ffc107;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
.dispatchChecklist {
|
.dispatchChecklist {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
||||||
|
|
@ -311,6 +311,16 @@ function DispatchDetailModal({ dispatchId, onClose, onUpdated }) {
|
||||||
<label>Dispatched</label>
|
<label>Dispatched</label>
|
||||||
<span>{dispatch.dispatchedAt ? formatDateTime(dispatch.dispatchedAt) : "—"}</span>
|
<span>{dispatch.dispatchedAt ? formatDateTime(dispatch.dispatchedAt) : "—"}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="dispatchDetailField">
|
||||||
|
<label>Accepted</label>
|
||||||
|
{dispatch.acknowledgedAt ? (
|
||||||
|
<span style={{ color: "#28a745" }}>{formatDateTime(dispatch.acknowledgedAt)}</span>
|
||||||
|
) : dispatch.status === "Sent" ? (
|
||||||
|
<span className="dispatchWaiting">Awaiting acceptance</span>
|
||||||
|
) : (
|
||||||
|
<span>—</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
<div className="dispatchDetailField">
|
<div className="dispatchDetailField">
|
||||||
<label>Vendor Email</label>
|
<label>Vendor Email</label>
|
||||||
<span>{dispatch.vendorEmail}</span>
|
<span>{dispatch.vendorEmail}</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue