scinote-web/app/javascript/packs/vue/action_toolbar.js
2023-05-23 12:08:04 +02:00

19 lines
436 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);
window.initActionToolbar = () => {
if (window.actionToolbarComponent) return;
if (notTurbolinksPreview()) {
new Vue({
el: '#actionToolbar',
components: {
ActionToolbar
}
});
}
}