fix(vendor-portal): accurate locked banner copy by dispatch status

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
arthur.bassi 2026-08-10 19:07:18 -03:00
parent aa58ca6200
commit 3708221c98

View file

@ -149,8 +149,9 @@ export function DispatchSnapshotDetails({ data, locked }: DispatchSnapshotDetail
<DispatcherContactDetails data={data} /> <DispatcherContactDetails data={data} />
{locked && ( {locked && (
<Text variant="feedback" className="vp-muted" sx={{ marginTop: 2 }}> <Text variant="feedback" className="vp-muted" sx={{ marginTop: 2 }}>
This dispatch is {data.status.toLowerCase()} and locked to further changes. Comments {data.status === "Refused"
remain open. ? "This dispatch is refused and locked to further changes. Comments remain open."
: `This dispatch is ${data.status.toLowerCase()} and locked to further status changes. Sign-off actions may still be available.`}
</Text> </Text>
)} )}
{Boolean(description) && ( {Boolean(description) && (