diff --git a/src/features/Events/EventPreview/EventPreviewAttendees.tsx b/src/features/Events/EventPreview/EventPreviewAttendees.tsx index 2e68aa0..42b31ca 100644 --- a/src/features/Events/EventPreview/EventPreviewAttendees.tsx +++ b/src/features/Events/EventPreview/EventPreviewAttendees.tsx @@ -1,3 +1,4 @@ +import { useAppSelector } from "@/app/hooks"; import { useAttendeesFreeBusy } from "@/components/Attendees/useFreeBusy"; import { renderAttendeeBadge } from "@/components/Event/utils/eventUtils"; import { extractEventBaseUuid } from "@/utils/extractEventBaseUuid"; @@ -34,7 +35,7 @@ export function EventPreviewAttendees({ const theme = useTheme(); const infoIconColor = alpha(theme.palette.grey[900], 0.9); const infoIconSx = { minWidth: "25px", marginRight: 2, color: infoIconColor }; - + const userEmail = useAppSelector((state) => state.user.userData.email); const [showAllAttendees, setShowAllAttendees] = useState(false); const attendeePreview = makeAttendeePreview(allAttendees, t); @@ -61,7 +62,9 @@ export function EventPreviewAttendees({ const busyCaption = (a: userAttendee) => freeBusyMap[a.cal_address] === "busy" - ? t("event.freeBusy.busy") + ? a.cal_address === userEmail + ? t("event.freeBusy.busyCalOwner") + : t("event.freeBusy.busy") : undefined; return ( diff --git a/src/locales/en.json b/src/locales/en.json index 6896dd5..ca816e8 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -136,6 +136,7 @@ "freeBusy": { "unknown": "Unknown status", "busy": "This person is busy", + "busyCalOwner": "You have another event at this time", "free": "User is free", "loading": "Status is loading" }, diff --git a/src/locales/fr.json b/src/locales/fr.json index 71c09f6..9254330 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -137,6 +137,7 @@ "freeBusy": { "unknown": "Statut inconnu", "busy": "Cette personne est occupée", + "busyCalOwner": "Vous avez un autre événement à cette heure-ci", "free": "L'utilisateur est disponible", "loading": "Chargement du statut" }, diff --git a/src/locales/ru.json b/src/locales/ru.json index b8a5fbd..c842da7 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -137,6 +137,7 @@ "freeBusy": { "unknown": "Статус неизвестен", "busy": "Пользователь занят", + "busyCalOwner": "У вас в данный момент другое мероприятие", "free": "Пользователь свободен", "loading": "Загрузка статуса" }, diff --git a/src/locales/vi.json b/src/locales/vi.json index 8f30121..e757c25 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -135,6 +135,7 @@ "freeBusy": { "unknown": "Trạng thái không rõ", "busy": "Người này đang bận", + "busyCalOwner": "Bạn có một sự kiện khác vào thời gian này", "free": "Người dùng đang rảnh", "loading": "Đang tải trạng thái" },