feat: Setting for rescheduling past bookings (#18358)
* feat: Setting for rescheduling past bookings * fix stuff * rename column * add e2e test * fix column name * fix typo --------- Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
17 files changed
+97
-17
No files matched your search
@@ -730,22 +730,23 @@ export default function Success(props: PageProps) {
|
||||
</span>
|
||||
|
||||
<>
|
||||
{!props.recurringBookings && !isBookingInPast && (
|
||||
<span className="text-default inline">
|
||||
<span className="underline" data-testid="reschedule-link">
|
||||
<Link
|
||||
href={`/reschedule/${seatReferenceUid || bookingInfo?.uid}${
|
||||
currentUserEmail
|
||||
? `?rescheduledBy=${encodeURIComponent(currentUserEmail)}`
|
||||
: ""
|
||||
}`}
|
||||
legacyBehavior>
|
||||
{t("reschedule")}
|
||||
</Link>
|
||||
{!props.recurringBookings &&
|
||||
(!isBookingInPast || eventType.allowReschedulingPastBookings) && (
|
||||
<span className="text-default inline">
|
||||
<span className="underline" data-testid="reschedule-link">
|
||||
<Link
|
||||
href={`/reschedule/${seatReferenceUid || bookingInfo?.uid}${
|
||||
currentUserEmail
|
||||
? `?rescheduledBy=${encodeURIComponent(currentUserEmail)}`
|
||||
: ""
|
||||
}`}
|
||||
legacyBehavior>
|
||||
{t("reschedule")}
|
||||
</Link>
|
||||
</span>
|
||||
<span className="mx-2">{t("or_lowercase")}</span>
|
||||
</span>
|
||||
<span className="mx-2">{t("or_lowercase")}</span>
|
||||
</span>
|
||||
)}
|
||||
)}
|
||||
|
||||
<button
|
||||
data-testid="cancel"
|
||||
|
||||
Reference in new issue
Block a user