loading icon sometimes toggled alongside MR pipeline contents
unbind existing listenerss and remove duplicate MiniPipelineGraph init
This commit is contained in:
parent
5cc9ebbe14
commit
229f806835
2 changed files with 1 additions and 2 deletions
|
@ -252,7 +252,6 @@ require('./smart_interval');
|
|||
$('.ci_widget.ci-error').show();
|
||||
this.setMergeButtonClass('btn-danger');
|
||||
}
|
||||
this.initMiniPipelineGraph();
|
||||
};
|
||||
|
||||
MergeRequestWidget.prototype.showCICoverage = function(coverage) {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* All dropdown events are fired at the .dropdown-menu's parent element.
|
||||
*/
|
||||
bindEvents() {
|
||||
$(document).on('shown.bs.dropdown', this.container, this.getBuildsList);
|
||||
$(document).off('shown.bs.dropdown', this.container).on('shown.bs.dropdown', this.container, this.getBuildsList);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue