scinote-web/app/javascript/packs/vue/action_toolbar.js

21 lines
470 B
JavaScript
Raw Normal View History

2023-05-22 16:48:21 +08:00
/* 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;
2023-05-22 16:48:21 +08:00
if (notTurbolinksPreview()) {
new Vue({
el: '#actionToolbar',
components: {
ActionToolbar
}
});
}
}