Commit 71d03e7e authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Move gon ref to the index to avoid depending on gon in any mr widget objects

parent b172ef2f
......@@ -4,6 +4,8 @@ import {
} from './dependencies';
document.addEventListener('DOMContentLoaded', () => {
gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;
const vm = new Vue(mrWidgetOptions);
window.gl.mrWidget = {
......
......@@ -5,7 +5,7 @@ export default class MergeRequestStore {
constructor(data) {
this.sha = data.diff_head_sha;
this.gitlabLogo = gon.gitlab_logo;
this.gitlabLogo = data.gitlabLogo;
this.setData(data);
}
......
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