chore(collection-pool): rename labels Ready/Pending instead of Ready/Awaiting
This commit is contained in:
parent
32194e8bb3
commit
e5285e67df
1 changed files with 4 additions and 4 deletions
|
|
@ -302,7 +302,7 @@ export default function CollectionPoolPage() {
|
|||
const text = await res.text().catch(() => "");
|
||||
throw new Error(text || `HTTP ${res.status}`);
|
||||
}
|
||||
toast.success("Marked awaiting supplier confirmation.");
|
||||
toast.success("Marked pending supplier confirmation.");
|
||||
await load();
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : String(err));
|
||||
|
|
@ -448,7 +448,7 @@ export default function CollectionPoolPage() {
|
|||
: "text-muted-foreground hover:bg-muted hover:text-foreground",
|
||||
)}
|
||||
>
|
||||
{opt === "all" ? "All" : opt === "ready" ? "Ready only" : "Awaiting only"}
|
||||
{opt === "all" ? "All" : opt === "ready" ? "Ready to collect" : "Pending"}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
|
@ -566,7 +566,7 @@ function PoolRow({
|
|||
const assignmentState = getAssignmentState(row, todayYmd);
|
||||
const assignmentBadge = getAssignmentBadge(assignmentState);
|
||||
const isAssigned = assignmentState !== "unassigned";
|
||||
const readyLabel = row.ready_for_collection ? "Ready" : "Awaiting";
|
||||
const readyLabel = row.ready_for_collection ? "Ready" : "Pending";
|
||||
const assignedDateLabel = row.assigned_at
|
||||
? new Date(row.assigned_at).toLocaleDateString(undefined, {
|
||||
weekday: "short",
|
||||
|
|
@ -647,7 +647,7 @@ function PoolRow({
|
|||
: "border-emerald-600 bg-emerald-600 text-white shadow-sm shadow-emerald-900/10 hover:border-emerald-700 hover:bg-emerald-700"
|
||||
}
|
||||
>
|
||||
{row.ready_for_collection ? "Mark Awaiting" : "Mark Ready"}
|
||||
{row.ready_for_collection ? "Mark Pending" : "Mark Ready"}
|
||||
</Button>
|
||||
{busy && (
|
||||
<span className="inline-flex items-center justify-end gap-1 text-[11px] text-muted-foreground">
|
||||
|
|
|
|||
Loading…
Reference in a new issue