Scheduling infrastructure for absolutely everyone.
fix: prevent custom calendar for team event (#26033)
Pallav7dcf4ee5c8c3
diff --git a/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx b/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsxindex 276551af104..541fd26326f 100644--- a/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx+++ b/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx@@ -37,7 +37,6 @@ import { BookerLayoutSelector } from "@calcom/features/settings/BookerLayoutSeleimport {DEFAULT_LIGHT_BRAND_COLOR,DEFAULT_DARK_BRAND_COLOR,- APP_NAME,MAX_SEATS_PER_TIME_SLOT,} from "@calcom/lib/constants";import { generateHashedLink } from "@calcom/lib/generateHashedLink";@@ -70,10 +69,10 @@ import type { CustomEventTypeModalClassNames } from "./CustomEventTypeModal";import CustomEventTypeModal from "./CustomEventTypeModal";import type { EmailNotificationToggleCustomClassNames } from "./DisableAllEmailsSetting";import { DisableAllEmailsSetting } from "./DisableAllEmailsSetting";-import type { RequiresConfirmationCustomClassNames } from "./RequiresConfirmationController";-import RequiresConfirmationController from "./RequiresConfirmationController";import type { DisableReschedulingCustomClassNames } from "./DisableReschedulingController";import DisableReschedulingController from "./DisableReschedulingController";+import type { RequiresConfirmationCustomClassNames } from "./RequiresConfirmationController";+import RequiresConfirmationController from "./RequiresConfirmationController";export type EventAdvancedTabCustomClassNames = {destinationCalendar?: SelectClassNames;@@ -225,7 +224,7 @@ const destinationCalendarComponents = {color="minimal"size="sm"aria-label="edit custom name"- className="hover:stroke-3 hover:text-emphasis py-0! min-w-fit px-1.5 -mr-1.5 hover:bg-transparent"+ className="hover:stroke-3 hover:text-emphasis py-0! -mr-1.5 min-w-fit px-1.5 hover:bg-transparent"onClick={() => setShowEventNameTip((old) => !old)}><Icon name="pencil" className="h-4 w-4" /></Button>@@ -260,7 +259,7 @@ const destinationCalendarComponents = {/></div>)}- {!showConnectedCalendarSettings && (+ {!showConnectedCalendarSettings && !isTeamEventType && (<p className="text-emphasis mb-2 block text-sm font-medium leading-none">{t("add_to_calendar")}</p>@@ -532,7 +531,6 @@ export const EventAdvancedTab = ({const customReplyToEmailLocked = shouldLockDisableProps("customReplyToEmail");const disableCancellingLocked = shouldLockDisableProps("disableCancelling");- const disableReschedulingLocked = shouldLockDisableProps("disableRescheduling");const allowReschedulingCancelledBookingsLocked = shouldLockDisableProps("allowReschedulingCancelledBookings");