@@ -436,7 +436,6 @@ import {
436436 useBatchJobDefinitions ,
437437 useRegisterBatchJobDefinition ,
438438 useDeregisterBatchJobDefinition ,
439- useBatchJobs ,
440439 useSubmitBatchJob ,
441440 useTerminateBatchJob ,
442441} from "../hooks/useBatch" ;
@@ -10580,7 +10579,6 @@ function BatchDashboard() {
1058010579 const { data : ceData , isLoading : ceLoading } = useBatchComputeEnvironments ( ) ;
1058110580 const { data : jqData , isLoading : jqLoading } = useBatchJobQueues ( ) ;
1058210581 const { data : jdData , isLoading : jdLoading } = useBatchJobDefinitions ( ) ;
10583- const { data : jobsData } = useBatchJobs ( ) ;
1058410582 const createCE = useCreateBatchComputeEnvironment ( ) ;
1058510583 const deleteCE = useDeleteBatchComputeEnvironment ( ) ;
1058610584 const createJQ = useCreateBatchJobQueue ( ) ;
@@ -10680,28 +10678,6 @@ function BatchDashboard() {
1068010678 onCreate = { ( ) => setShowCreateJD ( true ) }
1068110679 />
1068210680
10683- < ResourceTable
10684- resourceName = "Job"
10685- headerTitle = "Jobs"
10686- headerCounter = { ( jobsData ?. jobs || [ ] ) . length }
10687- items = { ( jobsData ?. jobs || [ ] ) . map ( ( j : any ) => ( {
10688- id : j . jobId ,
10689- name : j . jobName ,
10690- status : j . status || "-" ,
10691- created : j . createdAt ? new Date ( j . createdAt ) . toLocaleString ( ) : "-" ,
10692- } ) ) }
10693- columns = { [
10694- { id : "id" , header : "Job ID" , cell : ( i : any ) => i . id , isRowHeader : true } ,
10695- { id : "name" , header : "Name" , cell : ( i : any ) => i . name } ,
10696- { id : "status" , header : "Status" , cell : ( i : any ) => i . status } ,
10697- { id : "created" , header : "Created" , cell : ( i : any ) => i . created } ,
10698- ] }
10699- filterEnabled
10700- filterPlaceholder = "Find by name"
10701- filterFunction = { ( i : any , s : string ) => i . name . toLowerCase ( ) . includes ( s . toLowerCase ( ) ) }
10702- onCreate = { ( ) => setShowSubmitJob ( true ) }
10703- />
10704-
1070510681 < Modal visible = { showCreateCE } onDismiss = { ( ) => setShowCreateCE ( false ) } header = "Create Compute Environment"
1070610682 footer = { < Box float = "right" > < SpaceBetween direction = "horizontal" size = "xs" >
1070710683 < Button variant = "link" onClick = { ( ) => setShowCreateCE ( false ) } > Cancel</ Button >
0 commit comments