2023-06-20 00:43:36 +05:30
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-07-09 08:55:56 +05:30
|
|
|
const { failuresPath } = el.dataset;
|
|
|
|
|
2023-06-20 00:43:36 +05:30
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
name: 'ImportDetailsRoot',
|
2023-07-09 08:55:56 +05:30
|
|
|
provide: {
|
|
|
|
failuresPath,
|
|
|
|
},
|
2023-06-20 00:43:36 +05:30
|
|
|
render(createElement) {
|
|
|
|
return createElement(ImportDetailsApp);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|