Use Vue to refactor pull merge UI (#19650)
* 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>
This commit is contained in:
parent
d985dcc922
commit
368baf9e77
7 changed files with 206 additions and 218 deletions
12
web_src/js/features/repo-issue-pr-form.js
Normal file
12
web_src/js/features/repo-issue-pr-form.js
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue