Skip to content
Snippets Groups Projects
Commit fcc0f7c6 authored by Jacob Schatz's avatar Jacob Schatz Committed by Phil Hughes
Browse files

Remove repeated build listing

parent b2f2df3b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,9 +11,6 @@ class @MergeRequestWidget
modal = $('#modal_merge_info').modal(show: false)
@getBuildStatus()
# clear the build poller
$(document)
.off 'page:fetch'
.on 'page:fetch', (e) => clearInterval(@fetchBuildStatusInterval)
 
mergeInProgress: (deleteSourceBranch = false)->
$.ajax
Loading
Loading
@@ -65,7 +62,7 @@ class @MergeRequestWidget
_this.ciLabelForStatus(data.status)),
_this.opts.gitlab_icon)
setTimeout (->
window.location.reload()
Turbolinks.visit(location.href)
return
), 2000
_this.opts.current_status = data.status
Loading
Loading
Loading
Loading
@@ -27,4 +27,6 @@
opts.ci_message = "Build {{status}} for #{@merge_request.last_commit.sha}";
 
:javascript
merge_request_widget = new MergeRequestWidget(opts);
\ No newline at end of file
if(typeof merge_request_widget === 'undefined') {
merge_request_widget = new MergeRequestWidget(opts);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment