debian-mirror-gitlab/app/assets/javascripts/vue_merge_request_widget/index.js
2018-03-27 19:54:05 +05:30

17 lines
309 B
JavaScript

import {
Vue,
mrWidgetOptions,
} from './dependencies';
import Translate from '../vue_shared/translate';
Vue.use(Translate);
export default () => {
gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;
const vm = new Vue(mrWidgetOptions);
window.gl.mrWidget = {
checkStatus: vm.checkStatus,
};
};