scinote-web/app/javascript/packs/vue/manage_stock_value_modal.js
wandji c22d1e226b
Add new stock management modal and edit itemm card stock fields [SCI-9415] (#6474)
* 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]
2023-10-27 10:31:38 +02:00

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();