scinote-web/app/javascript/packs/vue/share_task_container.js
ajugo fa187f3b31
Add shared assets download and fix loading of the shareable button on task [SCI-8754] (#5878)
* Add shared assets download and fix loading of the shareable button on task [SCI-8754]

* Add additional check before asset loading [SCI-8754]

* Add additional check before asset loading [SCI-8754]

* Load asset for specific task [SCI-8754]
2023-08-01 16:46:41 +02:00

20 lines
484 B
JavaScript

import Vue from 'vue/dist/vue.esm';
import ShareLinkContainer from '../../vue/shareable_links/container.vue';
import PerfectScrollbar from 'vue2-perfect-scrollbar';
import 'vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css';
Vue.use(PerfectScrollbar);
Vue.prototype.i18n = window.I18n;
function initShareTaskContainer() {
new Vue({
el: '.share-task-container',
components: {
'share-task-container': ShareLinkContainer
}
});
}
initShareTaskContainer();