fix: improve restriction schedule description (#22517)

* fix description

* add back isRestrictionScheduleEnabled

---------

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2025-07-15 14:22:56 +02:00
1 parent 5854de3c23
commit afe5fea6eb
2 files changed
+3 -3

No files matched your search

@@ -3323,7 +3323,7 @@
"pbac_desc_manage_team_insights": "Manage team insights", "pbac_desc_manage_team_insights": "Manage team insights",
"read_permission_auto_enabled_tooltip": "Read permission is automatically enabled when creating, updating, or deleting a resource", "read_permission_auto_enabled_tooltip": "Read permission is automatically enabled when creating, updating, or deleting a resource",
"choose_restriction_schedule": "Add restriction schedule", "choose_restriction_schedule": "Add restriction schedule",
"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.", "restriction_schedule_description": "Limit availability of hosts to only display slots that fall within a specified schedule.",
"use_booker_timezone": "Use booker's timezone", "use_booker_timezone": "Use booker's timezone",
"use_booker_timezone_info": "Apply the selected restriction schedule in the booker's timezone", "use_booker_timezone_info": "Apply the selected restriction schedule in the booker's timezone",
"load_balancing_warning": "This will disable Load Balancing on all your Round Robin event types", "load_balancing_warning": "This will disable Load Balancing on all your Round Robin event types",
@@ -666,7 +666,7 @@ const TeamMemberSchedule = ({
{isPlatform && <Icon name="user" className={classNames("h-4 w-4", customClassNames?.labelAvatar)} />} {isPlatform && <Icon name="user" className={classNames("h-4 w-4", customClassNames?.labelAvatar)} />}
<p className={classNames("text-emphasis my-auto ms-3 text-sm", customClassNames?.label)}>{label}</p> <p className={classNames("text-emphasis my-auto ms-3 text-sm", customClassNames?.label)}>{label}</p>
</div> </div>
<div className="flex w-full flex-col pt-2 "> <div className="flex w-full flex-col pt-2">
{isPending ? ( {isPending ? (
<Spinner className="mt-2 h-6 w-6" /> <Spinner className="mt-2 h-6 w-6" />
) : ( ) : (
@@ -851,7 +851,7 @@ const UseTeamEventScheduleSettingsToggle = ({
checked={restrictScheduleForHosts} checked={restrictScheduleForHosts}
onCheckedChange={toggleRestrictScheduleState} onCheckedChange={toggleRestrictScheduleState}
title={t("choose_restriction_schedule")} title={t("choose_restriction_schedule")}
description={t("choose_restriction_schedule_description")}> description={t("restriction_schedule_description")}>
<EventTypeSchedule <EventTypeSchedule
customClassNames={customClassNames?.userAvailability} customClassNames={customClassNames?.userAvailability}
eventType={eventType} eventType={eventType}