@@ -42,7 +42,6 @@ import { DANGER_BUTTON, FORBIDDEN_ERROR_STATUS_CODE } from 'igz-controls/constan
42
42
import { JobsContext } from '../Jobs'
43
43
import { createJobsScheduleTabContent } from '../../../utils/createJobsContent'
44
44
import { getJobFunctionData } from '../jobs.util'
45
- import { generateContentActionsMenu } from '../../../layout/Content/content.util'
46
45
import { getNoDataMessage } from '../../../utils/getNoDataMessage'
47
46
import { openPopUp } from 'igz-controls/utils/common.util'
48
47
import { parseJob } from '../../../utils/parseJob'
@@ -207,35 +206,36 @@ const ScheduledJobs = ({
207
206
[ fetchJobFunction , dispatch , fetchFunctionTemplate , fetchJobFunctionSuccess , setJobWizardMode ]
208
207
)
209
208
210
- const actionsMenu = useMemo ( ( ) => {
211
- return generateContentActionsMenu (
212
- job => [
213
- {
214
- label : 'Run now' ,
215
- icon : < Run className = "action_cell__run-icon" /> ,
216
- onClick : handleRunJob
217
- } ,
218
- {
219
- label : 'Edit' ,
220
- icon : < Edit /> ,
221
- onClick : handleEditScheduleJob ,
222
- hidden : job ?. type === JOB_KIND_WORKFLOW
223
- } ,
224
- {
225
- label : 'Delete' ,
226
- icon : < Delete /> ,
227
- className : 'danger' ,
228
- onClick : onRemoveScheduledJob
229
- } ,
230
- {
231
- label : 'View YAML' ,
232
- icon : < Yaml /> ,
233
- onClick : toggleConvertedYaml
234
- }
209
+ const actionsMenu = useMemo (
210
+ ( ) => job =>
211
+ [
212
+ [
213
+ {
214
+ label : 'Run now' ,
215
+ icon : < Run className = "action_cell__run-icon" /> ,
216
+ onClick : handleRunJob
217
+ } ,
218
+ {
219
+ label : 'Edit' ,
220
+ icon : < Edit /> ,
221
+ onClick : handleEditScheduleJob ,
222
+ hidden : job ?. type === JOB_KIND_WORKFLOW
223
+ } ,
224
+ {
225
+ label : 'Delete' ,
226
+ icon : < Delete /> ,
227
+ className : 'danger' ,
228
+ onClick : onRemoveScheduledJob
229
+ } ,
230
+ {
231
+ label : 'View YAML' ,
232
+ icon : < Yaml /> ,
233
+ onClick : toggleConvertedYaml
234
+ }
235
+ ]
235
236
] ,
236
- [ ]
237
- )
238
- } , [ handleEditScheduleJob , handleRunJob , onRemoveScheduledJob , toggleConvertedYaml ] )
237
+ [ handleEditScheduleJob , handleRunJob , onRemoveScheduledJob , toggleConvertedYaml ]
238
+ )
239
239
240
240
useEffect ( ( ) => {
241
241
if ( ! dataIsLoaded ) {
0 commit comments