@@ -3,21 +3,22 @@ import { useTranslation } from "react-i18next";
33import EmbeddingCodeModal from "./modals/EmbeddingCodeModal" ;
44import { getUserInformation } from "../../../selectors/userInfoSelectors" ;
55import { hasAccess } from "../../../utils/utils" ;
6- import SeriesDetailsModal from "./modals/SeriesDetailsModal" ;
76import { EventDetailsPage } from "./modals/EventDetails" ;
87import { useAppDispatch , useAppSelector } from "../../../store" ;
98import {
109 fetchSeriesDetailsAcls ,
1110 fetchSeriesDetailsMetadata ,
1211 fetchSeriesDetailsTheme ,
1312 fetchSeriesDetailsThemeNames ,
13+ openModal as openSeriesModal ,
1414} from "../../../slices/seriesDetailsSlice" ;
1515import { Event , deleteEvent } from "../../../slices/eventSlice" ;
1616import { Tooltip } from "../../shared/Tooltip" ;
1717import { openModal } from "../../../slices/eventDetailsSlice" ;
1818import { ActionCellDelete } from "../../shared/ActionCellDelete" ;
1919import { Modal , ModalHandle } from "../../shared/modals/Modal" ;
2020import ButtonLikeAnchor from "../../shared/ButtonLikeAnchor" ;
21+ import { SeriesDetailsPage } from "./modals/SeriesDetails" ;
2122
2223/**
2324 * This component renders the action cells of events in the table view
@@ -30,7 +31,6 @@ const EventActionCell = ({
3031 const { t } = useTranslation ( ) ;
3132 const dispatch = useAppDispatch ( ) ;
3233
33- const seriesDetailsModalRef = useRef < ModalHandle > ( null ) ;
3434 const embeddingCodeModalRef = useRef < ModalHandle > ( null ) ;
3535
3636 const user = useAppSelector ( state => getUserInformation ( state ) ) ;
@@ -44,7 +44,7 @@ const EventActionCell = ({
4444 } ;
4545
4646 const showSeriesDetailsModal = ( ) => {
47- seriesDetailsModalRef . current ?. open ( ) ;
47+ dispatch ( openSeriesModal ( SeriesDetailsPage . Metadata , row . series ? row . series : null ) ) ;
4848 } ;
4949
5050 const onClickSeriesDetails = async ( ) => {
@@ -78,20 +78,12 @@ const EventActionCell = ({
7878
7979 return (
8080 < >
81- { ! ! row . series && (
82- < SeriesDetailsModal
83- seriesId = { row . series . id }
84- seriesTitle = { row . series . title }
85- modalRef = { seriesDetailsModalRef }
86- />
87- ) }
88-
8981 { /* Open event details */ }
9082 < ButtonLikeAnchor
9183 onClick = { onClickEventDetails }
9284 className = { "more" }
9385 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_VIEW" }
94- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS" }
86+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS"} // Disabled due to performance concerns
9587 />
9688
9789 { /* If event belongs to a series then the corresponding series details can be opened */ }
@@ -100,14 +92,14 @@ const EventActionCell = ({
10092 onClick = { onClickSeriesDetails }
10193 className = { "more-series" }
10294 editAccessRole = { "ROLE_UI_SERIES_DETAILS_VIEW" }
103- tooltipText = { "EVENTS.SERIES.TABLE.TOOLTIP.DETAILS" }
95+ // tooltipText={"EVENTS.SERIES.TABLE.TOOLTIP.DETAILS"} // Disabled due to performance concerns
10496 />
10597 ) }
10698
10799 { /* Delete an event */ }
108100 < ActionCellDelete
109101 editAccessRole = { "ROLE_UI_EVENTS_DELETE" }
110- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DELETE" }
102+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.DELETE"} // Disabled due to performance concerns
111103 resourceId = { row . id }
112104 resourceName = { row . title }
113105 resourceType = { "EVENT" }
@@ -116,29 +108,29 @@ const EventActionCell = ({
116108
117109 { /* If the event has an preview then the editor can be opened and status if it needs to be cut is shown */ }
118110 { ! ! row . has_preview && hasAccess ( "ROLE_UI_EVENTS_EDITOR_VIEW" , user ) && (
119- < Tooltip
120- title = {
121- row . needs_cutting
122- ? t ( "EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR_NEEDS_CUTTING" )
123- : t ( "EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR" )
124- }
125- >
111+ // <Tooltip // Disabled due to performance concerns
112+ // title={
113+ // row.needs_cutting
114+ // ? t("EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR_NEEDS_CUTTING")
115+ // : t("EVENTS.EVENTS.TABLE.TOOLTIP.EDITOR")
116+ // }
117+ // >
126118 < a
127119 href = { `/editor-ui/index.html?id=${ row . id } ` }
128120 className = "cut"
129121 target = "_blank" rel = "noreferrer"
130122 >
131123 { row . needs_cutting && < span id = "badge" className = "badge" /> }
132124 </ a >
133- </ Tooltip >
125+ // </Tooltip>
134126 ) }
135127
136128 { /* If the event has comments and no open comments then the comment tab of event details can be opened directly */ }
137129 { row . has_comments && ! row . has_open_comments && (
138130 < ButtonLikeAnchor
139131 onClick = { ( ) => onClickComments ( ) }
140132 className = { "comments" }
141- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
133+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
142134 />
143135 ) }
144136
@@ -147,7 +139,7 @@ const EventActionCell = ({
147139 < ButtonLikeAnchor
148140 onClick = { ( ) => onClickComments ( ) }
149141 className = { "comments-open" }
150- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
142+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
151143 />
152144 ) }
153145
@@ -158,7 +150,7 @@ const EventActionCell = ({
158150 onClick = { ( ) => onClickWorkflow ( ) }
159151 className = { "fa fa-warning" }
160152 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_WORKFLOWS_EDIT" }
161- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW" }
153+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW"} // Disabled due to performance concerns
162154 />
163155 }
164156
@@ -167,15 +159,15 @@ const EventActionCell = ({
167159 onClick = { ( ) => onClickAssets ( ) }
168160 className = { "fa fa-folder-open" }
169161 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_ASSETS_VIEW" }
170- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS" }
162+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS"} // Disabled due to performance concerns
171163 />
172164
173165 { /* Open dialog for embedded code*/ }
174166 < ButtonLikeAnchor
175167 onClick = { ( ) => showEmbeddingCodeModal ( ) }
176168 className = { "fa fa-link" }
177169 editAccessRole = { "ROLE_UI_EVENTS_EMBEDDING_CODE_VIEW" }
178- tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE" }
170+ // tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE"} // Disabled due to performance concerns
179171 />
180172
181173 { /* Embedding Code Modal */ }
0 commit comments