Fix play button on public pages.
This commit is contained in:
parent
37dc95b7d9
commit
b8a825b8ea
|
@ -3,6 +3,7 @@ import axios from 'axios';
|
|||
import VueAxios from 'vue-axios';
|
||||
import GetTextPlugin from 'vue-gettext';
|
||||
import translations from '../../translations/translations.json';
|
||||
import pinia from './vendor/pinia';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Configure localization
|
||||
|
@ -30,6 +31,7 @@ export default function (component) {
|
|||
return function (el, props) {
|
||||
return new Vue({
|
||||
el: el,
|
||||
pinia,
|
||||
created() {
|
||||
let handleAxiosError = (error) => {
|
||||
let notifyMessage = this.$gettext('An error occurred and your request could not be completed.');
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
import Vue from 'vue';
|
||||
import InlinePlayer from '~/components/InlinePlayer.vue';
|
||||
import {createPinia, PiniaVuePlugin} from 'pinia';
|
||||
|
||||
Vue.use(PiniaVuePlugin);
|
||||
const pinia = createPinia();
|
||||
import pinia from '../vendor/pinia';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
let inlinePlayer = new Vue({
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import Vue from 'vue';
|
||||
import {createPinia, PiniaVuePlugin} from 'pinia';
|
||||
|
||||
Vue.use(PiniaVuePlugin);
|
||||
const pinia = createPinia();
|
||||
|
||||
export default pinia;
|
Loading…
Reference in New Issue