Skip to content
Snippets Groups Projects
Commit 2bee8e7d authored by Phil Hughes's avatar Phil Hughes
Browse files

Hide build spinner on canceled builds

Closes #19651
parent 7303de91
No related branches found
No related tags found
1 merge request!5182Hide build spinner on canceled builds
Pipeline #
Loading
Loading
@@ -46,13 +46,15 @@ class @CiBuild
, 4000
 
getInitialBuildTrace: ->
removeRefreshStatuses = ['success', 'failed', 'canceled']
$.ajax
url: @build_url
dataType: 'json'
success: (build_data) ->
$('.js-build-output').html build_data.trace_html
 
if build_data.status is 'success' or build_data.status is 'failed'
if removeRefreshStatuses.indexOf(build_data.status) >= 0
$('.js-build-refresh').remove()
 
getBuildTrace: ->
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment