diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index 418b0e5ad..88fa6b7b3 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -22,6 +22,11 @@ import app from '../app/App.js'; import Vue from 'vue'; + +Vue.prototype.t = t; +Vue.prototype.n = n; +Vue.prototype.OC = OC; + import CollaborationView from '../views/CollaborationView'; /* global oc_defaults oc_config OC OCP OCA */ diff --git a/js/init-collections.js b/js/init-collections.js index d4de97435..bae235767 100644 --- a/js/init-collections.js +++ b/js/init-collections.js @@ -29,17 +29,18 @@ __webpack_nonce__ = btoa(OC.requestToken); __webpack_public_path__ = OC.linkTo('deck', 'js/build/'); import Vue from 'vue'; + +Vue.prototype.$ = $ +Vue.prototype.t = t +Vue.prototype.n = n +Vue.prototype.OC = OC + import BoardSelector from './views/BoardSelector'; import './../css/collections.css'; ((function(OCP) { - Vue.prototype.$ = $ - Vue.prototype.t = t - Vue.prototype.n = n - Vue.prototype.OC = OC - OCP.Collaboration.registerType('deck', { action: () => { return new Promise((resolve, reject) => { diff --git a/js/views/BoardSelector.vue b/js/views/BoardSelector.vue index 576e6de54..7a5da6672 100644 --- a/js/views/BoardSelector.vue +++ b/js/views/BoardSelector.vue @@ -25,7 +25,7 @@