mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 08:26:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			775 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			775 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.component('PerfectScrollbar', PerfectScrollbar);
 | |
|     app.config.globalProperties.i18n = window.I18n;
 | |
|     mountWithTurbolinks(app, '#manageStockValueModal', () => {
 | |
|       window.manageStockModalComponent = null;
 | |
|     });
 | |
|   }
 | |
| };
 |