mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
2680b317e5
* Fix issue when toggling repository items search fields [SCI-8874] * Refactor outside click directive and make it available for all components [SCI-8874]
18 lines
588 B
JavaScript
18 lines
588 B
JavaScript
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import RepositorySearchContainer from '../../vue/repository_search/container.vue';
|
|
import outsideClick from './directives/outside_click';
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.prototype.i18n = window.I18n;
|
|
Vue.directive('click-outside', outsideClick);
|
|
|
|
window.initRepositorySearch = () => {
|
|
window.RepositorySearchComponent = new Vue({
|
|
el: '#inventorySearchComponent',
|
|
name: 'RepositorySearchComponent',
|
|
components: {
|
|
'repository_search_container': RepositorySearchContainer
|
|
}
|
|
});
|
|
}
|