scinote-web/app/javascript/packs/vue/protocol_file_import_modal.js
2023-10-24 13:16:22 +02:00

13 lines
510 B
JavaScript

import TurbolinksAdapter from 'vue-turbolinks';
import { createApp } from 'vue/dist/vue.esm-bundler.js';
import ProtocolFileImportModal from '../../vue/protocol_import/file_import_modal.vue';
window.initProtocolFileImportModalComponent = () => {
const app = createApp({});
app.component('ProtocolFileImportModal', ProtocolFileImportModal);
app.use(TurbolinksAdapter);
app.config.globalProperties.i18n = window.I18n;
app.mount('#protocolFileImportModal');
};
initProtocolFileImportModalComponent();