@@ -162,7 +162,7 @@ const Artifacts = ({
162
162
if ( status . toLowerCase ( ) === TERMINAL_STATUS_MAP . RUNNING || status . toLowerCase ( ) === TERMINAL_STATUS_MAP . STARTING ) {
163
163
return < CIProgressView />
164
164
}
165
- if ( isJobView && ! blobStorageEnabled ) {
165
+ if ( ! blobStorageEnabled ) {
166
166
return (
167
167
< div className = "flex column p-24 w-100 h-100" >
168
168
< GenericEmptyState
@@ -188,15 +188,6 @@ const Artifacts = ({
188
188
</ div >
189
189
)
190
190
}
191
- if ( isJobView && ! isArtifactUploaded ) {
192
- return (
193
- < GenericEmptyState
194
- title = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoFilesFound }
195
- subTitle = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoFilesGenerated }
196
- image = { noartifact }
197
- />
198
- )
199
- }
200
191
if ( status . toLowerCase ( ) === TERMINAL_STATUS_MAP . FAILED || status . toLowerCase ( ) === TERMINAL_STATUS_MAP . CANCELLED ) {
201
192
if ( isJobCI ) {
202
193
return (
@@ -214,7 +205,7 @@ const Artifacts = ({
214
205
/>
215
206
)
216
207
}
217
- if ( ! artifactId && status . toLowerCase ( ) === TERMINAL_STATUS_MAP . SUCCEEDED ) {
208
+ if ( ! artifactId && status . toLowerCase ( ) === TERMINAL_STATUS_MAP . SUCCEEDED && ! isJobView ) {
218
209
return (
219
210
< GenericEmptyState
220
211
title = { EMPTY_STATE_STATUS . ARTIFACTS_EMPTY_STATE_TEXTS . NoArtifactsFound }
@@ -254,26 +245,28 @@ const Artifacts = ({
254
245
</ div >
255
246
</ CIListItem >
256
247
) }
257
- { blobStorageEnabled && downloadArtifactUrl && ( type === HistoryComponentType . CD || isArtifactUploaded ) && (
258
- < CIListItem
259
- type = "report"
260
- hideImageTaggingHardDelete = { hideImageTaggingHardDelete }
261
- isSuperAdmin = { isSuperAdmin }
262
- renderCIListHeader = { renderCIListHeader }
263
- >
264
- < div className = "flex column left" >
265
- < div className = "cn-9 fs-14" > Reports.zip</ div >
266
- < button
267
- type = "button"
268
- onClick = { handleArtifact }
269
- className = "anchor p-0 cb-5 fs-12 flex left pointer"
270
- >
271
- Download
272
- < Download className = "ml-5 icon-dim-16" />
273
- </ button >
274
- </ div >
275
- </ CIListItem >
276
- ) }
248
+ { blobStorageEnabled &&
249
+ downloadArtifactUrl &&
250
+ ( type === HistoryComponentType . CD || isArtifactUploaded || isJobView ) && (
251
+ < CIListItem
252
+ type = "report"
253
+ hideImageTaggingHardDelete = { hideImageTaggingHardDelete }
254
+ isSuperAdmin = { isSuperAdmin }
255
+ renderCIListHeader = { renderCIListHeader }
256
+ >
257
+ < div className = "flex column left" >
258
+ < div className = "cn-9 fs-14" > Reports.zip</ div >
259
+ < button
260
+ type = "button"
261
+ onClick = { handleArtifact }
262
+ className = "anchor p-0 cb-5 fs-12 flex left pointer"
263
+ >
264
+ Download
265
+ < Download className = "ml-5 icon-dim-16" />
266
+ </ button >
267
+ </ div >
268
+ </ CIListItem >
269
+ ) }
277
270
</ div >
278
271
)
279
272
}
0 commit comments