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