Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « vue_merge_request_widget « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc6e620f3656faf7202c7ded9a1c99af8b596aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,
  };
};