scinote-web/app/javascript/packs/vue/manage_stock_value_modal.js
wandji 91f650e227
Reload inventory table after changes to item card [SCI-9617] (#6626)
* Reload inventory table row after changes to item card [SCI-9617]

* Reload full table after updating item card column [SCI-9617]

* Update 2 line if condition formatting style [SCI-9617]
2023-11-20 15:26:01 +01:00

17 lines
683 B
JavaScript

import PerfectScrollbar from 'vue3-perfect-scrollbar';
import { createApp } from 'vue/dist/vue.esm-bundler.js';
import ManageStockValueModal from '../../vue/repository_row/manage_stock_value_modal.vue';
import { mountWithTurbolinks } from './helpers/turbolinks.js';
window.initManageStockValueModalComponent = () => {
if (window.manageStockModalComponent) return;
// eslint-disable-next-line no-undef
if (notTurbolinksPreview()) {
const app = createApp({});
app.component('ManageStockValueModal', ManageStockValueModal);
app.use(PerfectScrollbar);
app.config.globalProperties.i18n = window.I18n;
mountWithTurbolinks(app, '#manageStockValueModal');
}
};