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

18 lines
389 B
JavaScript
Raw Normal View History

2018-12-13 13:39:08 +05:30
import Vue from 'vue';
2019-03-02 22:35:43 +05:30
import MrWidgetOptions from 'ee_else_ce/vue_merge_request_widget/mr_widget_options.vue';
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 () => {
2020-03-09 13:42:32 +05:30
if (gl.mrWidget) return;
2017-08-17 22:00:37 +05:30
gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;
2018-12-13 13:39:08 +05:30
const vm = new Vue(MrWidgetOptions);
2017-08-17 22:00:37 +05:30
window.gl.mrWidget = {
checkStatus: vm.checkStatus,
};
2018-03-27 19:54:05 +05:30
};