mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
21 lines
563 B
JavaScript
21 lines
563 B
JavaScript
/* global notTurbolinksPreview */
|
|
|
|
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import ExportStockConsumptionModal from '../../vue/repository_row/export_stock_consumption_modal.vue';
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.prototype.i18n = window.I18n;
|
|
|
|
window.initExportStockConsumptionModal = () => {
|
|
if (window.exportStockConsumptionModalComponent) return;
|
|
|
|
if (notTurbolinksPreview()) {
|
|
new Vue({
|
|
el: '#exportStockConsumtionModal',
|
|
components: {
|
|
ExportStockConsumptionModal,
|
|
},
|
|
});
|
|
}
|
|
};
|