Skip to content

Commit afe5fea

Browse files
CarinaWolliCarinaWolli
andauthored
fix: improve restriction schedule description (calcom#22517)
* fix description * add back isRestrictionScheduleEnabled --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
1 parent 5854de3 commit afe5fea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/web/public/static/locales/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,7 @@
33233323
"pbac_desc_manage_team_insights": "Manage team insights",
33243324
"read_permission_auto_enabled_tooltip": "Read permission is automatically enabled when creating, updating, or deleting a resource",
33253325
"choose_restriction_schedule": "Add restriction schedule",
3326-
"choose_restriction_schedule_description": "Enable this if you want to restrict the availability of hosts for this event type based on a restriction schedule. This only removes the slots that are not in the restriction schedule, it does not add any new slots.",
3326+
"restriction_schedule_description": "Limit availability of hosts to only display slots that fall within a specified schedule.",
33273327
"use_booker_timezone": "Use booker's timezone",
33283328
"use_booker_timezone_info": "Apply the selected restriction schedule in the booker's timezone",
33293329
"load_balancing_warning": "This will disable Load Balancing on all your Round Robin event types",

packages/features/eventtypes/components/tabs/availability/EventAvailabilityTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ const TeamMemberSchedule = ({
666666
{isPlatform && <Icon name="user" className={classNames("h-4 w-4", customClassNames?.labelAvatar)} />}
667667
<p className={classNames("text-emphasis my-auto ms-3 text-sm", customClassNames?.label)}>{label}</p>
668668
</div>
669-
<div className="flex w-full flex-col pt-2 ">
669+
<div className="flex w-full flex-col pt-2">
670670
{isPending ? (
671671
<Spinner className="mt-2 h-6 w-6" />
672672
) : (
@@ -851,7 +851,7 @@ const UseTeamEventScheduleSettingsToggle = ({
851851
checked={restrictScheduleForHosts}
852852
onCheckedChange={toggleRestrictScheduleState}
853853
title={t("choose_restriction_schedule")}
854-
description={t("choose_restriction_schedule_description")}>
854+
description={t("restriction_schedule_description")}>
855855
<EventTypeSchedule
856856
customClassNames={customClassNames?.userAvailability}
857857
eventType={eventType}

0 commit comments

Comments
 (0)