@@ -168,7 +168,7 @@ const Artifacts = ({
168
168
if ( status . toLowerCase ( ) === TERMINAL_STATUS_MAP . RUNNING || status . toLowerCase ( ) === TERMINAL_STATUS_MAP . STARTING ) {
169
169
return < CIProgressView />
170
170
}
171
- if ( isJobView && ! blobStorageEnabled ) {
171
+ if ( ! blobStorageEnabled ) {
172
172
return (
173
173
< div className = "flex column p-24 w-100 h-100" >
174
174
< GenericEmptyState
@@ -194,15 +194,6 @@ const Artifacts = ({
194
194
</ div >
195
195
)
196
196
}
197
- if ( isJobView && ! isArtifactUploaded ) {
198
- return (
199
- < GenericEmptyState
200
- title = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoFilesFound }
201
- subTitle = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoFilesGenerated }
202
- image = { noartifact }
203
- />
204
- )
205
- }
206
197
if ( status . toLowerCase ( ) === TERMINAL_STATUS_MAP . FAILED || status . toLowerCase ( ) === TERMINAL_STATUS_MAP . CANCELLED ) {
207
198
if ( isJobCI ) {
208
199
return (
@@ -220,7 +211,7 @@ const Artifacts = ({
220
211
/>
221
212
)
222
213
}
223
- if ( ! artifactId && status . toLowerCase ( ) === TERMINAL_STATUS_MAP . SUCCEEDED ) {
214
+ if ( ! artifactId && status . toLowerCase ( ) === TERMINAL_STATUS_MAP . SUCCEEDED && ! isJobView ) {
224
215
return (
225
216
< GenericEmptyState
226
217
title = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoArtifactsFound }
@@ -260,26 +251,28 @@ const Artifacts = ({
260
251
</ div >
261
252
</ CIListItem >
262
253
) }
263
- { blobStorageEnabled && getArtifactPromise && ( type === HistoryComponentType . CD || isArtifactUploaded ) && (
264
- < CIListItem
265
- type = "report"
266
- hideImageTaggingHardDelete = { hideImageTaggingHardDelete }
267
- isSuperAdmin = { isSuperAdmin }
268
- renderCIListHeader = { renderCIListHeader }
269
- >
270
- < div className = "flex column left" >
271
- < div className = "cn-9 fs-14" > Reports.zip</ div >
272
- < button
273
- type = "button"
274
- onClick = { handleArtifact }
275
- className = "anchor p-0 cb-5 fs-12 flex left pointer"
276
- >
277
- Download
278
- < Download className = "ml-5 icon-dim-16" />
279
- </ button >
280
- </ div >
281
- </ CIListItem >
282
- ) }
254
+ { blobStorageEnabled &&
255
+ getArtifactPromise &&
256
+ ( type === HistoryComponentType . CD || isArtifactUploaded || isJobView ) && (
257
+ < CIListItem
258
+ type = "report"
259
+ hideImageTaggingHardDelete = { hideImageTaggingHardDelete }
260
+ isSuperAdmin = { isSuperAdmin }
261
+ renderCIListHeader = { renderCIListHeader }
262
+ >
263
+ < div className = "flex column left" >
264
+ < div className = "cn-9 fs-14" > Reports.zip</ div >
265
+ < button
266
+ type = "button"
267
+ onClick = { handleArtifact }
268
+ className = "anchor p-0 cb-5 fs-12 flex left pointer"
269
+ >
270
+ Download
271
+ < Download className = "ml-5 icon-dim-16" />
272
+ </ button >
273
+ </ div >
274
+ </ CIListItem >
275
+ ) }
283
276
</ div >
284
277
)
285
278
}
0 commit comments