gitlab-org--gitlab-foss/app/assets/javascripts/vue_merge_request_widget/index.js
2018-10-25 17:54:04 +02:00

15 lines
333 B
JavaScript

import Vue from 'vue';
import MrWidgetOptions from './ee_switch_mr_widget_options';
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,
};
};