fix: event type settings atom not saving (#21864)
* chore: specify atoms version * fix: saving event type settings
This commit is contained in:
1 parent
1674ecc585
commit
540bf868b5
3 files changed
+51
-50
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@calcom/atoms": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix saving event type settings
|
||||||
@@ -339,58 +339,54 @@ const Locations: React.FC<LocationsProps> = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isCalVideo && (
|
{isCalVideo && !isPlatform && (
|
||||||
<div className="bg-muted mt-2 space-y-2 rounded-lg p-4">
|
<div className="bg-muted mt-2 space-y-2 rounded-lg p-4">
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
{!isPlatform && (
|
<Controller
|
||||||
<Controller
|
name="calVideoSettings.disableRecordingForGuests"
|
||||||
name="calVideoSettings.disableRecordingForGuests"
|
defaultValue={!!eventType.calVideoSettings?.disableRecordingForGuests}
|
||||||
defaultValue={!!eventType.calVideoSettings?.disableRecordingForGuests}
|
render={({ field: { onChange, value } }) => {
|
||||||
render={({ field: { onChange, value } }) => {
|
return (
|
||||||
return (
|
<SettingsToggle
|
||||||
<SettingsToggle
|
title={t("disable_recording_for_guests")}
|
||||||
title={t("disable_recording_for_guests")}
|
labelClassName="text-sm"
|
||||||
labelClassName="text-sm"
|
checked={value}
|
||||||
checked={value}
|
onCheckedChange={onChange}
|
||||||
onCheckedChange={onChange}
|
/>
|
||||||
/>
|
);
|
||||||
);
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
|
||||||
)}
|
<Controller
|
||||||
{!isPlatform && (
|
name="calVideoSettings.disableRecordingForOrganizer"
|
||||||
<Controller
|
defaultValue={!!eventType.calVideoSettings?.disableRecordingForOrganizer}
|
||||||
name="calVideoSettings.disableRecordingForOrganizer"
|
render={({ field: { onChange, value } }) => {
|
||||||
defaultValue={!!eventType.calVideoSettings?.disableRecordingForOrganizer}
|
return (
|
||||||
render={({ field: { onChange, value } }) => {
|
<SettingsToggle
|
||||||
return (
|
title={t("disable_recording_for_organizer")}
|
||||||
<SettingsToggle
|
labelClassName="text-sm"
|
||||||
title={t("disable_recording_for_organizer")}
|
checked={value}
|
||||||
labelClassName="text-sm"
|
onCheckedChange={onChange}
|
||||||
checked={value}
|
/>
|
||||||
onCheckedChange={onChange}
|
);
|
||||||
/>
|
}}
|
||||||
);
|
/>
|
||||||
}}
|
|
||||||
/>
|
<Controller
|
||||||
)}
|
name="calVideoSettings.enableAutomaticTranscription"
|
||||||
{!isPlatform && (
|
defaultValue={!!eventType.calVideoSettings?.enableAutomaticTranscription}
|
||||||
<Controller
|
render={({ field: { onChange, value } }) => {
|
||||||
name="calVideoSettings.enableAutomaticTranscription"
|
return (
|
||||||
defaultValue={!!eventType.calVideoSettings?.enableAutomaticTranscription}
|
<SettingsToggle
|
||||||
render={({ field: { onChange, value } }) => {
|
title={t("enable_automatic_transcription")}
|
||||||
return (
|
labelClassName="text-sm"
|
||||||
<SettingsToggle
|
checked={value}
|
||||||
title={t("enable_automatic_transcription")}
|
onCheckedChange={onChange}
|
||||||
labelClassName="text-sm"
|
/>
|
||||||
checked={value}
|
);
|
||||||
onCheckedChange={onChange}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
label={t("enter_redirect_url_on_exit_description")}
|
label={t("enter_redirect_url_on_exit_description")}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Customizable UI components to integrate scheduling into your product.",
|
"description": "Customizable UI components to integrate scheduling into your product.",
|
||||||
"authors": "Cal.com, Inc.",
|
"authors": "Cal.com, Inc.",
|
||||||
"version": "1.0.52",
|
"version": "1.0.105",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
|
"dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch",
|
||||||
"build": "NODE_OPTIONS='--max_old_space_size=16384' rm -rf dist && yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client",
|
"build": "NODE_OPTIONS='--max_old_space_size=16384' rm -rf dist && yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify && mkdir ./dist/packages/prisma-client && cp -rf ../../../node_modules/.prisma/client/*.d.ts ./dist/packages/prisma-client",
|
||||||
|
|||||||
Reference in new issue
Block a user