mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-11 22:11:58 +01:00
368baf9e77
* Use Vue to refactor pull merge UI * add comments * fix comments * small fine tune * fix tests * adopt new pull default messages * clean up Co-authored-by: 6543 <6543@obermui.de>
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
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);
|
|
}
|