mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
20 lines
470 B
JavaScript
20 lines
470 B
JavaScript
/* global notTurbolinksPreview */
|
|
|
|
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import ActionToolbar from '../../vue/components/action_toolbar.vue';
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.prototype.i18n = window.I18n;
|
|
|
|
window.initActionToolbar = () => {
|
|
if (window.actionToolbarComponent) return;
|
|
if (notTurbolinksPreview()) {
|
|
new Vue({
|
|
el: '#actionToolbar',
|
|
components: {
|
|
ActionToolbar
|
|
}
|
|
});
|
|
}
|
|
}
|