mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
fix
This commit is contained in:
@@ -1037,11 +1037,17 @@ const FirstMilePage = () => {
|
||||
<Divider />
|
||||
<Select
|
||||
label="Vehicle"
|
||||
placeholder="Select a vehicle"
|
||||
placeholder={vehicleOptions.length === 0 ? "No free vehicles" : "Select a vehicle"}
|
||||
description={
|
||||
vehicleOptions.length === 0
|
||||
? "No free vehicles available — all vehicles are busy, in maintenance, or retired. Free up a vehicle in Fleet › Vehicles first."
|
||||
: undefined
|
||||
}
|
||||
data={vehicleOptions}
|
||||
value={vehicleValue}
|
||||
onChange={setVehicleValue}
|
||||
searchable
|
||||
disabled={vehicleOptions.length === 0}
|
||||
/>
|
||||
<Group justify="flex-end" gap="sm">
|
||||
<Button variant="default" onClick={closeAssign}>Cancel</Button>
|
||||
@@ -1202,12 +1208,18 @@ const FirstMilePage = () => {
|
||||
<Divider />
|
||||
<Select
|
||||
label="Assign Vehicle (optional)"
|
||||
placeholder="Select a vehicle"
|
||||
placeholder={vehicleOptions.length === 0 ? "No free vehicles" : "Select a vehicle"}
|
||||
description={
|
||||
vehicleOptions.length === 0
|
||||
? "No free vehicles available — you can still accept and assign a vehicle later."
|
||||
: undefined
|
||||
}
|
||||
data={vehicleOptions}
|
||||
value={acceptVehicleValue}
|
||||
onChange={setAcceptVehicleValue}
|
||||
searchable
|
||||
clearable
|
||||
disabled={vehicleOptions.length === 0}
|
||||
/>
|
||||
<Group justify="space-between" gap="sm">
|
||||
<Button variant="subtle" onClick={() => setAcceptStep(1)}>← Back</Button>
|
||||
|
||||
@@ -1095,12 +1095,18 @@ const LastMilePage = () => {
|
||||
<Divider />
|
||||
<Select
|
||||
label="Assign Vehicle (optional)"
|
||||
placeholder="Select a vehicle"
|
||||
placeholder={vehicleOptions.length === 0 ? "No free vehicles" : "Select a vehicle"}
|
||||
description={
|
||||
vehicleOptions.length === 0
|
||||
? "No free vehicles available — you can still accept and assign a vehicle later."
|
||||
: undefined
|
||||
}
|
||||
data={vehicleOptions}
|
||||
value={acceptVehicleValue}
|
||||
onChange={setAcceptVehicleValue}
|
||||
searchable
|
||||
clearable
|
||||
disabled={vehicleOptions.length === 0}
|
||||
/>
|
||||
<Group justify="space-between" gap="sm">
|
||||
<Button variant="subtle" onClick={() => setAcceptStep(1)}>← Back</Button>
|
||||
@@ -1143,11 +1149,17 @@ const LastMilePage = () => {
|
||||
<Divider />
|
||||
<Select
|
||||
label="Vehicle"
|
||||
placeholder="Select a vehicle"
|
||||
placeholder={vehicleOptions.length === 0 ? "No free vehicles" : "Select a vehicle"}
|
||||
description={
|
||||
vehicleOptions.length === 0
|
||||
? "No free vehicles available — all vehicles are busy, in maintenance, or retired. Free up a vehicle in Fleet › Vehicles first."
|
||||
: undefined
|
||||
}
|
||||
data={vehicleOptions}
|
||||
value={vehicleValue}
|
||||
onChange={setVehicleValue}
|
||||
searchable
|
||||
disabled={vehicleOptions.length === 0}
|
||||
/>
|
||||
<Group justify="flex-end" gap="sm">
|
||||
<Button variant="default" onClick={closeAssign}>Cancel</Button>
|
||||
|
||||
Reference in New Issue
Block a user