From 3fc38146f79a998393ccf3c480b30846caace33a Mon Sep 17 00:00:00 2001 From: Julian Kniephoff Date: Tue, 14 Jan 2025 15:10:20 +0100 Subject: [PATCH 1/3] Factor out series details action button --- .../events/partials/EventActionCell.tsx | 10 ++-------- .../events/partials/SeriesActionsCell.tsx | 10 ++-------- .../events/partials/SeriesDetailsAction.tsx | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 src/components/events/partials/SeriesDetailsAction.tsx diff --git a/src/components/events/partials/EventActionCell.tsx b/src/components/events/partials/EventActionCell.tsx index 0654b63cf2..d5784703be 100644 --- a/src/components/events/partials/EventActionCell.tsx +++ b/src/components/events/partials/EventActionCell.tsx @@ -17,6 +17,7 @@ import { import { Event, deleteEvent } from "../../../slices/eventSlice"; import { Tooltip } from "../../shared/Tooltip"; import { openModal } from "../../../slices/eventDetailsSlice"; +import { SeriesDetailsAction } from "./SeriesDetailsAction"; /** * This component renders the action cells of events in the table view @@ -108,14 +109,7 @@ const EventActionCell = ({ )} {/* If event belongs to a series then the corresponding series details can be opened */} - {!!row.series && hasAccess("ROLE_UI_SERIES_DETAILS_VIEW", user) && ( - -