From 15123c1aa52781c6bd32a4d1800b33e4c89ce316 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Mon, 2 Jan 2023 14:11:39 +0530 Subject: [PATCH] Add disable success page config[Platform Only] (#6225) * Add disable success page config * Change text Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../components/eventtype/EventAdvancedTab.tsx | 22 +++++++++++++++++-- apps/web/pages/booking/[uid].tsx | 10 ++++++++- apps/web/public/static/locales/en/common.json | 1 + packages/prisma/zod-utils.ts | 1 + .../ui/components/form/checkbox/Checkbox.tsx | 3 ++- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/apps/web/components/eventtype/EventAdvancedTab.tsx b/apps/web/components/eventtype/EventAdvancedTab.tsx index b35bcfa721..df4f1c8173 100644 --- a/apps/web/components/eventtype/EventAdvancedTab.tsx +++ b/apps/web/components/eventtype/EventAdvancedTab.tsx @@ -7,10 +7,11 @@ import { v5 as uuidv5 } from "uuid"; import DestinationCalendarSelector from "@calcom/features/calendars/DestinationCalendarSelector"; import CustomInputItem from "@calcom/features/eventtypes/components/CustomInputItem"; -import { APP_NAME, CAL_URL } from "@calcom/lib/constants"; +import { APP_NAME, CAL_URL, IS_SELF_HOSTED } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { + Badge, Button, Checkbox, Dialog, @@ -256,13 +257,30 @@ export const EventAdvancedTab = ({ eventType, team }: Pick +
+ + {/*TODO: Extract it out into a component when used more than once*/} + {!IS_SELF_HOSTED && ( + + + + Platform Only + + + + )} +
)} />
- ( {...rest} ref={ref} type="checkbox" + disabled={disabled} className={classNames( "text-primary-600 focus:ring-primary-500 mr-2 h-4 w-4 rounded border-gray-300 ", !error && disabled @@ -59,7 +60,7 @@ const CheckboxField = forwardRef( )} /> - {description} + {description} )} {/* {informationIconText && } */}