@@ -14,7 +14,7 @@ import { WorkflowTabHierarchy } from "../modals/EventDetails";
1414import { useTranslation } from "react-i18next" ;
1515import { fetchWorkflowOperationDetails , setModalWorkflowTabHierarchy } from "../../../../slices/eventDetailsSlice" ;
1616import ModalContentTable from "../../../shared/modals/ModalContentTable" ;
17- import { Operation } from "./EventDetailsWorkflowOperations" ;
17+ import { WorkflowOperationsTable } from "./EventDetailsWorkflowOperations" ;
1818
1919/**
2020 * This component manages the workflow error details for the workflows tab of the event details modal
@@ -63,97 +63,51 @@ const EventDetailsWorkflowErrorDetails = ({
6363 modalBodyChildren = { < Notifications context = "not_corner" /> }
6464 >
6565 { /* Error operation table */ }
66- < div className = "obj tbl-container" >
67- < header >
68- { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.OPERATION" ) }
69- </ header >
70- < table className = "main-tbl" >
71- < thead >
72- < tr >
73- < th >
74- { t ( "EVENTS.EVENTS.DETAILS.WORKFLOW_OPERATIONS.TABLE_HEADERS.STATUS" ) /* Status */ }
75- </ th >
76- < th >
77- { t ( "EVENTS.EVENTS.DETAILS.WORKFLOW_OPERATIONS.TABLE_HEADERS.TITLE" ) /* Title */ }
78- </ th >
79- < th >
80- { t ( "EVENTS.EVENTS.DETAILS.WORKFLOW_OPERATIONS.TABLE_HEADERS.DESCRIPTION" ) /* Description */ }
81- </ th >
82- < th className = "medium" />
83- </ tr >
84- </ thead >
85- < tbody >
86- { operationsEntry &&
87- < Operation
88- operationId = { operationsEntry . index }
89- item = { operationsEntry . operation }
90- openSubTab = { openOperationDetailsSubTab }
91- />
92- }
93- </ tbody >
94- </ table >
95- </ div >
66+ < WorkflowOperationsTable
67+ operations = { operationsEntry
68+ ? [ { operation : operationsEntry . operation , operationId : operationsEntry . index } ]
69+ : [ ]
70+ }
71+ openSubTab = { openOperationDetailsSubTab }
72+ title = { "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.OPERATION" }
73+ />
9674
9775 { /* 'Error Details' table */ }
9876 < div className = "obj tbl-details" >
9977 < header >
100- {
101- t (
102- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.HEADER" ,
103- ) /* Error Details */
104- }
78+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.HEADER" ) /* Error Details */ }
10579 </ header >
10680 < div className = "obj-container" >
10781 < table className = "main-tbl" >
10882 { isFetching || (
10983 < tbody >
11084 < tr >
11185 < td >
112- {
113- t (
114- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.SEVERITY" ,
115- ) /* Severity */
116- }
86+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.SEVERITY" ) /* Severity */ }
11787 </ td >
11888 < td > { errorDetails . severity } </ td >
11989 </ tr >
12090 < tr >
12191 < td >
122- {
123- t (
124- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TITLE" ,
125- ) /* Title */
126- }
92+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TITLE" ) /* Title */ }
12793 </ td >
12894 < td > { errorDetails . title } </ td >
12995 </ tr >
13096 < tr >
13197 < td >
132- {
133- t (
134- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.DESCRIPTION" ,
135- ) /* Description */
136- }
98+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.DESCRIPTION" ) /* Description */ }
13799 </ td >
138100 < td > { errorDetails . description } </ td >
139101 </ tr >
140102 < tr >
141103 < td >
142- {
143- t (
144- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.JOB_ID" ,
145- ) /* Job ID */
146- }
104+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.JOB_ID" ) /* Job ID */ }
147105 </ td >
148106 < td > { errorDetails . jobId } </ td >
149107 </ tr >
150108 < tr >
151109 < td >
152- {
153- t (
154- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.DATE" ,
155- ) /* Date */
156- }
110+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.DATE" ) /* Date */ }
157111 </ td >
158112 < td >
159113 { t ( "dateFormats.dateTime.medium" , {
@@ -163,31 +117,19 @@ const EventDetailsWorkflowErrorDetails = ({
163117 </ tr >
164118 < tr >
165119 < td >
166- {
167- t (
168- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.HOST" ,
169- ) /* Host */
170- }
120+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.HOST" ) /* Host */ }
171121 </ td >
172122 < td > { errorDetails . processingHost } </ td >
173123 </ tr >
174124 < tr >
175125 < td >
176- {
177- t (
178- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TYPE" ,
179- ) /* Type */
180- }
126+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TYPE" ) /* Type */ }
181127 </ td >
182128 < td > { errorDetails . serviceType } </ td >
183129 </ tr >
184130 < tr >
185131 < td >
186- {
187- t (
188- "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TECHNICAL_DETAILS" ,
189- ) /* Technical Details */
190- }
132+ { t ( "EVENTS.EVENTS.DETAILS.ERRORS_AND_WARNINGS.DETAILS.TECHNICAL_DETAILS" ) /* Technical Details */ }
191133 </ td >
192134
193135 { /* list of technical error details */ }
0 commit comments