Commit 54428eda authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'mini-pipeline-document-fix' into 'master'

Fixes event listener context in mini-pipeline graph

See merge request !1194
parents 9ba32fea e10b36a6
...@@ -12,9 +12,5 @@ $(() => { ...@@ -12,9 +12,5 @@ $(() => {
gl.MergeRequestWidgetApp = new Vue({ gl.MergeRequestWidgetApp = new Vue({
el: rootEl, el: rootEl,
data: widgetSharedStore.data, data: widgetSharedStore.data,
mounted() {
// re-init the MiniPipelineGraph because of Vue is messing with the element
merge_request_widget.initMiniPipelineGraph();
},
}); });
}); });
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* All dropdown events are fired at the .dropdown-menu's parent element. * All dropdown events are fired at the .dropdown-menu's parent element.
*/ */
bindEvents() { bindEvents() {
$(this.container).on('shown.bs.dropdown', this.getBuildsList); $(document).on('shown.bs.dropdown', this.container, this.getBuildsList);
} }
/** /**
......
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