debian-mirror-gitlab/app/assets/javascripts/vue_merge_request_widget/index.js

15 lines
271 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import {
Vue,
mrWidgetOptions,
} from './dependencies';
document.addEventListener('DOMContentLoaded', () => {
gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;
const vm = new Vue(mrWidgetOptions);
window.gl.mrWidget = {
checkStatus: vm.checkStatus,
};
});