aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-issue-pr-form.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-issue-pr-form.js')
-rw-r--r--web_src/js/features/repo-issue-pr-form.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/web_src/js/features/repo-issue-pr-form.js b/web_src/js/features/repo-issue-pr-form.js
index 747e4f467e..59d4c7a3b4 100644
--- a/web_src/js/features/repo-issue-pr-form.js
+++ b/web_src/js/features/repo-issue-pr-form.js
@@ -1,12 +1,10 @@
-import Vue from 'vue';
+import {createApp} 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);
+ const view = createApp(PullRequestMergeForm);
+ view.mount(el);
}