diff options
Diffstat (limited to 'web_src/js/components/RepoActivityTopAuthors.vue')
-rw-r--r-- | web_src/js/components/RepoActivityTopAuthors.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web_src/js/components/RepoActivityTopAuthors.vue b/web_src/js/components/RepoActivityTopAuthors.vue index 37b6df9187..294ee6f7bc 100644 --- a/web_src/js/components/RepoActivityTopAuthors.vue +++ b/web_src/js/components/RepoActivityTopAuthors.vue @@ -51,7 +51,7 @@ <script> import VueBarGraph from 'vue-bar-graph'; -import {initVueApp} from './VueComponentLoader.js'; +import {createApp} from 'vue'; const sfc = { components: {VueBarGraph}, @@ -102,8 +102,11 @@ const sfc = { }; export function initRepoActivityTopAuthorsChart() { - initVueApp('#repo-activity-top-authors-chart', sfc); + const el = document.getElementById('repo-activity-top-authors-chart'); + if (el) { + createApp(sfc).mount(el); + } } -export default sfc; // this line is necessary to activate the IDE's Vue plugin +export default sfc; // activate the IDE's Vue plugin </script> |