summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-issue-pr-form.js
blob: 747e4f467e04a2575c87de68083ac5a78970e32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Vue from 'vue';
import PullRequestMergeForm from '../components/PullRequestMergeForm.vue';

export default function initPullRequestMergeForm() {
  const el = document.getElementById('pull-request-merge-form');
  if (!el) return;

  const View = Vue.extend({
    render: (createElement) => createElement(PullRequestMergeForm),
  });
  new View().$mount(el);
}