Commit e10b36a6 authored by Phil Hughes's avatar Phil Hughes

Fixes event listener context

This is intead of re-initializing the mini-pipeline graph after the vue app is mounted
parent 5aa8f737
...@@ -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