mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 06:35:14 +08:00
c22d1e226b
* Add edit fetaure to item card stock field [SCI-9415] * Replace manage stock modal [SCI-9415] * Fix issue displaying item card [SCI-9415] * Minor improvements [SCI-9415] * Enable stock modal in assigned inventories [SCI-9415] * Use toggleable reminder value [SCI-9415]
24 lines
711 B
JavaScript
24 lines
711 B
JavaScript
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import PerfectScrollbar from 'vue2-perfect-scrollbar';
|
|
import 'vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css';
|
|
import ManageStockValueModal from '../../vue/repository_row/manage_stock_value_modal.vue';
|
|
|
|
Vue.use(PerfectScrollbar);
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.prototype.i18n = window.I18n;
|
|
|
|
window.initManageStockValueModalComponent = () => {
|
|
if (window.manageStockModalComponent) return;
|
|
|
|
if (notTurbolinksPreview()) {
|
|
new Vue({
|
|
el: '#manageStockValueModal',
|
|
components: {
|
|
'manage-stock-value-modal': ManageStockValueModal,
|
|
},
|
|
});
|
|
}
|
|
};
|
|
|
|
initManageStockValueModalComponent();
|