Commit 2bee8e7d authored by Phil Hughes's avatar Phil Hughes

Hide build spinner on canceled builds

Closes #19651
parent 7303de91
......@@ -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: ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment