Add an accommodations reservations module #188
@ -101,9 +101,11 @@ export function UpdateReservationDialog(p: {
|
|||||||
<Button
|
<Button
|
||||||
onClick={submit}
|
onClick={submit}
|
||||||
disabled={
|
disabled={
|
||||||
(reservation?.accommodation_id ?? -1) > 0 &&
|
!(
|
||||||
(reservation?.start ?? -1) > 0 &&
|
(reservation?.accommodation_id ?? -1) > 0 &&
|
||||||
(reservation?.end ?? -1) > (reservation?.start ?? 0)
|
(reservation?.start ?? -1) > 0 &&
|
||||||
|
(reservation?.end ?? -1) > (reservation?.start ?? 0)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.create ? "Créer" : "Mettre à jour"}
|
{p.create ? "Créer" : "Mettre à jour"}
|
||||||
|
Loading…
Reference in New Issue
Block a user