feat: Allow cancellation & reschedule on past bookings (#16118)

* option to cancel/reschedule in past bookings

* allows reschedule and cancellation on past bookings

* make headline checks readable

* --

* --

* review feedback
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2024-08-08 10:59:57 +00:00
1 parent 46acac5dd8
commit f92a95dc2e
3 files changed
+36 -37

No files matched your search

@@ -515,7 +515,7 @@ function BookingListItem(booking: BookingItemProps) {
</div>
</Link>
</td>
<td className="flex w-full justify-end py-4 pl-4 text-right text-sm font-medium ltr:pr-4 rtl:pl-4 sm:pl-0">
<td className="flex w-full flex-col flex-wrap items-end justify-end space-x-2 space-y-2 py-4 pl-4 text-right text-sm font-medium ltr:pr-4 rtl:pl-4 sm:flex-row sm:flex-nowrap sm:items-start sm:space-y-0 sm:pl-0">
{isUpcoming && !isCancelled ? (
<>
{isPending && (userId === booking.user?.id || booking.isUserTeamAdminOrOwner) && (
@@ -526,6 +526,7 @@ function BookingListItem(booking: BookingItemProps) {
</>
) : null}
{isBookingInPast && isPending && !isConfirmed ? <TableActions actions={bookedActions} /> : null}
{isBookingInPast && isConfirmed ? <TableActions actions={bookedActions} /> : null}
{(showViewRecordingsButton || showCheckRecordingButton) && (
<TableActions actions={showRecordingActions} />
)}