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

18 lines
309 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import {
Vue,
mrWidgetOptions,
} from './dependencies';
2018-03-17 18:26:18 +05:30
import Translate from '../vue_shared/translate';
Vue.use(Translate);
2017-08-17 22:00:37 +05:30
2018-03-27 19:54:05 +05:30
export default () => {
2017-08-17 22:00:37 +05:30
gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;
const vm = new Vue(mrWidgetOptions);
window.gl.mrWidget = {
checkStatus: vm.checkStatus,
};
2018-03-27 19:54:05 +05:30
};