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: 6b9918b65b0b0220bab2232dc2453c92e62e6c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {
  Vue,
  mrWidgetOptions,
} from './dependencies';
import Translate from '../vue_shared/translate';

Vue.use(Translate);

document.addEventListener('DOMContentLoaded', () => {
  gl.mrWidgetData.gitlabLogo = gon.gitlab_logo;

  const vm = new Vue(mrWidgetOptions);

  window.gl.mrWidget = {
    checkStatus: vm.checkStatus,
  };
});