mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
22 lines
563 B
JavaScript
22 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,
|
||
|
},
|
||
|
});
|
||
|
}
|
||
|
};
|