[#671] button for opening visio is now right clickable to copy the link (#675)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-03-20 08:51:19 +01:00
committed by GitHub
parent 3ed8b8ac6b
commit edc0ca6d01
@@ -1,18 +1,18 @@
import { InfoRow } from "@/components/Event/InfoRow"; import { InfoRow } from "@/components/Event/InfoRow";
import { Box, Button, Typography } from "@linagora/twake-mui"; import { Box, Button, Link, Typography } from "@linagora/twake-mui";
import LayersOutlinedIcon from "@mui/icons-material/LayersOutlined";
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline"; import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import LayersOutlinedIcon from "@mui/icons-material/LayersOutlined";
import LocationOnOutlinedIcon from "@mui/icons-material/LocationOnOutlined"; import LocationOnOutlinedIcon from "@mui/icons-material/LocationOnOutlined";
import NotificationsNoneIcon from "@mui/icons-material/NotificationsNone"; import NotificationsNoneIcon from "@mui/icons-material/NotificationsNone";
import RepeatIcon from "@mui/icons-material/Repeat"; import RepeatIcon from "@mui/icons-material/Repeat";
import SubjectIcon from "@mui/icons-material/Subject"; import SubjectIcon from "@mui/icons-material/Subject";
import VideocamOutlinedIcon from "@mui/icons-material/VideocamOutlined"; import VideocamOutlinedIcon from "@mui/icons-material/VideocamOutlined";
import { alpha, useTheme } from "@mui/material/styles"; import { alpha, useTheme } from "@mui/material/styles";
import { useMemo } from "react";
import { useI18n } from "twake-i18n"; import { useI18n } from "twake-i18n";
import { CalendarEvent } from "../EventsTypes"; import { CalendarEvent } from "../EventsTypes";
import { EventPreviewAttendees } from "./EventPreviewAttendees"; import { EventPreviewAttendees } from "./EventPreviewAttendees";
import { makeRecurrenceString } from "./utils/makeRecurrenceString"; import { makeRecurrenceString } from "./utils/makeRecurrenceString";
import { useMemo } from "react";
interface EventPreviewDetailsProps { interface EventPreviewDetailsProps {
event: CalendarEvent; event: CalendarEvent;
@@ -88,20 +88,20 @@ export function EventPreviewDetails({
</Box> </Box>
} }
content={ content={
<Button <Link
variant="contained" href={event.x_openpass_videoconference}
size="medium" target="_blank"
onClick={() => rel="noopener noreferrer"
window.open( sx={{ textDecoration: "none" }}
event.x_openpass_videoconference,
"_blank",
"noopener,noreferrer"
)
}
sx={{ borderRadius: "4px" }}
> >
{t("eventPreview.joinVideo")} <Button
</Button> variant="contained"
size="medium"
sx={{ borderRadius: "4px" }}
>
{t("eventPreview.joinVideo")}
</Button>
</Link>
} }
/> />
)} )}