debian-mirror-gitlab/app/assets/javascripts/import/details/index.js
2023-07-09 08:55:56 +05:30

23 lines
440 B
JavaScript

import Vue from 'vue';
import ImportDetailsApp from './components/import_details_app.vue';
export default () => {
const el = document.querySelector('.js-import-details');
if (!el) {
return null;
}
const { failuresPath } = el.dataset;
return new Vue({
el,
name: 'ImportDetailsRoot',
provide: {
failuresPath,
},
render(createElement) {
return createElement(ImportDetailsApp);
},
});
};