File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import classNames from 'classnames'
2
2
import { FormRow , FormSection } from 'components/form/layout/layout'
3
3
import { useExportDetails } from 'data-services/hooks/exports/useExportDetails'
4
4
import { Export } from 'data-services/models/export'
5
+ import { JobStatusType } from 'data-services/models/job'
5
6
import * as Dialog from 'design-system/components/dialog/dialog'
6
7
import { InputContent , InputValue } from 'design-system/components/input/input'
7
8
import inputStyles from 'design-system/components/input/input.module.scss'
@@ -124,7 +125,8 @@ const ExportDetailsContent = ({ exportDetails }: { exportDetails: Export }) => {
124
125
</ FormSection >
125
126
< FormSection title = { translate ( STRING . FIELD_LABEL_RESULT ) } >
126
127
< div >
127
- { exportDetails . job && exportDetails . job . progress . value !== 1 ? (
128
+ { exportDetails . job &&
129
+ exportDetails . job . status . type !== JobStatusType . Success ? (
128
130
< StatusBar
129
131
color = { exportDetails . job . status . color }
130
132
progress = { exportDetails . job . progress . value }
Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames'
2
2
import { API_ROUTES } from 'data-services/constants'
3
3
import { Export } from 'data-services/models/export'
4
+ import { JobStatusType } from 'data-services/models/job'
4
5
import { StatusBar } from 'design-system/components/status/status-bar'
5
6
import { BasicTableCell } from 'design-system/components/table/basic-table-cell/basic-table-cell'
6
7
import {
@@ -45,7 +46,7 @@ export const columns: (projectId: string) => TableColumn<Export>[] = (
45
46
name : translate ( STRING . FIELD_LABEL_RESULT ) ,
46
47
renderCell : ( item : Export ) => (
47
48
< BasicTableCell >
48
- { item . job && item . job . progress . value !== 1 ? (
49
+ { item . job && item . job . status . type !== JobStatusType . Success ? (
49
50
< div className = "w-min" >
50
51
< StatusBar
51
52
color = { item . job . status . color }
You can’t perform that action at this time.
0 commit comments