mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
fix(auth): resolve position-type permissions so GL staff can open clearance pages
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
TextInput,
|
||||
} from "@mantine/core";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import { AlertCircle, Send, XCircle } from "lucide-react";
|
||||
import { AlertCircle, Pencil, Send, XCircle } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
@@ -86,7 +86,7 @@ export function ChangesRequestedView({
|
||||
|
||||
<StatusHero booking={booking}>
|
||||
{booking.latestChangeRequestNote ? (
|
||||
<ActionRequiredBanner title="Review the requested changes, then resubmit.">
|
||||
<ActionRequiredBanner title="Review the requested changes, update the booking if needed, then resubmit.">
|
||||
{booking.latestChangeRequestNote}
|
||||
</ActionRequiredBanner>
|
||||
) : undefined}
|
||||
@@ -108,8 +108,25 @@ export function ChangesRequestedView({
|
||||
<Text fz="12.5px" c="#6B7C8E" mb="sm">
|
||||
Update the documents for this booking, then resubmit for review.
|
||||
Replace any that changed and attach any that are still required.
|
||||
Need to change the cargo itself — containers, route, schedule or
|
||||
other details? Edit the booking first, then come back and
|
||||
resubmit.
|
||||
</Text>
|
||||
|
||||
<Button
|
||||
fullWidth
|
||||
radius={10}
|
||||
variant="default"
|
||||
leftSection={<Pencil size={16} />}
|
||||
onClick={() => navigate(`/bookings/${booking.id}/edit`)}
|
||||
styles={{
|
||||
root: { height: 46 },
|
||||
label: { fontSize: 14, fontWeight: 700 },
|
||||
}}
|
||||
>
|
||||
Edit booking details
|
||||
</Button>
|
||||
|
||||
<ResubmitDocuments flow={flow} />
|
||||
|
||||
{flow.validationError && (
|
||||
|
||||
Reference in New Issue
Block a user