From 90245273ab7fbdd65c7021a2014e93909e3008b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Fri, 10 Sep 2021 21:51:45 +0200 Subject: [PATCH] Don't rely on Vue.prototype.t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- docs/index.md | 2 -- src/components/AppNavigationItem/InputConfirmCancel.vue | 2 ++ src/components/AppSettingsDialog/AppSettingsDialog.vue | 2 ++ src/components/DatetimePicker/DatetimePicker.vue | 4 ++++ src/components/RichContenteditable/RichContenteditable.vue | 2 +- src/components/SettingsSelectGroup/SettingsSelectGroup.vue | 2 ++ styleguide/global.requires.js | 3 --- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/index.md b/docs/index.md index 38a463eb5f..92d66c0d58 100644 --- a/docs/index.md +++ b/docs/index.md @@ -37,8 +37,6 @@ import Avatar from '@nextcloud/vue/dist/Components/Avatar' Some components require Nextcloud functionality to work, so it is currently recommended to extend Vue with the following: ```js static -Vue.prototype.t = window.t -Vue.prototype.n = window.n Vue.prototype.OC = window.OC Vue.prototype.OCA = window.OCA ``` diff --git a/src/components/AppNavigationItem/InputConfirmCancel.vue b/src/components/AppNavigationItem/InputConfirmCancel.vue index db24f53782..786cd1853c 100644 --- a/src/components/AppNavigationItem/InputConfirmCancel.vue +++ b/src/components/AppNavigationItem/InputConfirmCancel.vue @@ -55,6 +55,8 @@