From 7ea0f70fe8129347670e511ab8585bc786a6383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 10 Apr 2019 17:17:19 +0200 Subject: [PATCH] Hide currentboard in selector (fixes #967) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/BoardController.js | 5 +++++ js/init-collections.js | 11 ++++++----- js/views/BoardSelector.vue | 6 +++++- 3 files changed, 16 insertions(+), 6 deletions(-) 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 @@