Skip to content

Commit

Permalink
chore: Bulk update desc (#16343)
Browse files Browse the repository at this point in the history
* chore(locale-en): update bulk modal description

* chore: schedule bulk-modal description

---------

Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
  • Loading branch information
2 people authored and zomars committed Sep 4, 2024
1 parent 981b017 commit 925558b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/web/components/apps/AppList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const AppList = ({ data, handleDisconnect, variant, listClassName }: AppL
open={bulkUpdateModal}
setOpen={setBulkUpdateModal}
isPending={updateLocationsMutation.isPending}
description={t("default_conferencing_bulk_description")}
/>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions apps/web/pages/availability/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export function AvailabilityList({ schedules }: RouterOutputs["viewer"]["availab
open={bulkUpdateModal}
setOpen={setBulkUpdateModal}
bulkUpdateFunction={bulkUpdateDefaultAvailabilityMutation.mutate}
description={t("default_schedules_bulk_description")}
/>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions apps/web/public/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,7 @@
"members_default_schedule_description": "We will use each members default availability schedule. They will be able to edit or change it.",
"requires_at_least_one_schedule": "You are required to have at least one schedule",
"default_conferencing_bulk_description": "Update the locations for the selected event types",
"default_schedules_bulk_description": "Update the schedules for the selected event types",
"locked_for_members": "Locked for members",
"unlocked_for_members": "Unlocked for members",
"apps_locked_for_members_description": "Members will be able to see the active apps but will not be able to edit any app settings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function BulkEditDefaultForEventsModal(props: {
setOpen: (open: boolean) => void;
bulkUpdateFunction: ({ eventTypeIds }: { eventTypeIds: number[] }) => void;
isPending: boolean;
description: string;
}) {
const { t } = useLocale();
const utils = trpc.useUtils();
Expand All @@ -36,7 +37,7 @@ export function BulkEditDefaultForEventsModal(props: {
<DialogContent
type="creation"
title={t("default_conferencing_bulk_title")}
description={t("default_conferencing_bulk_description")}
description={props.description}
enableOverflow>
<Form
form={form}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ export function AvailabilitySettings({
open={bulkUpdateModalProps?.isOpen}
setOpen={bulkUpdateModalProps.setIsOpen}
bulkUpdateFunction={bulkUpdateModalProps?.save}
description={t("default_schedules_bulk_description")}
/>
)}

Expand Down

0 comments on commit 925558b

Please sign in to comment.