summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-diff-filetree.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-diff-filetree.js')
-rw-r--r--web_src/js/features/repo-diff-filetree.js18
1 files changed, 7 insertions, 11 deletions
diff --git a/web_src/js/features/repo-diff-filetree.js b/web_src/js/features/repo-diff-filetree.js
index 9eba3cf887..6059dd82e7 100644
--- a/web_src/js/features/repo-diff-filetree.js
+++ b/web_src/js/features/repo-diff-filetree.js
@@ -1,21 +1,17 @@
-import Vue from 'vue';
+import {createApp} from 'vue';
import DiffFileTree from '../components/DiffFileTree.vue';
import DiffFileList from '../components/DiffFileList.vue';
export default function initDiffFileTree() {
- const el = document.getElementById('diff-file-tree-container');
+ const el = document.getElementById('diff-file-tree');
if (!el) return;
- const View = Vue.extend({
- render: (createElement) => createElement(DiffFileTree),
- });
- new View().$mount(el);
+ const fileTreeView = createApp(DiffFileTree);
+ fileTreeView.mount(el);
- const fileListElement = document.getElementById('diff-file-list-container');
+ const fileListElement = document.getElementById('diff-file-list');
if (!fileListElement) return;
- const fileListView = Vue.extend({
- render: (createElement) => createElement(DiffFileList),
- });
- new fileListView().$mount(fileListElement);
+ const fileListView = createApp(DiffFileList);
+ fileListView.mount(fileListElement);
}