aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-16 14:03:23 +0200
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-06-24 16:54:11 +0200
commit872483f279732908d60d1a85abedcc8fb79a625a (patch)
treeb8efe26dd07d335bc3e6f38db8a3da3bc4ed9e91 /apps/files/js
parent1afc82327aecbd372ddcd5bf8306bcb3722700ed (diff)
downloadnextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.tar.gz
nextcloud-server-872483f279732908d60d1a85abedcc8fb79a625a.zip
only print deprecation logs if debug mode is enabled
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js6
-rw-r--r--apps/files/js/files.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index c1b603da714..479956a4ddf 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -666,7 +666,7 @@
* @param {string} [tabId] optional tab id to select
*/
showDetailsView: function(fileName, tabId) {
- console.debug('showDetailsView is deprecated! Use OCA.Files.Sidebar.activeTab. It will be removed in nextcloud 20.');
+ OC.debug && console.debug('showDetailsView is deprecated! Use OCA.Files.Sidebar.activeTab. It will be removed in nextcloud 20.');
this._updateDetailsView(fileName);
if (tabId) {
OCA.Files.Sidebar.setActiveTab(tabId);
@@ -3879,7 +3879,7 @@
* Register a tab view to be added to all views
*/
registerTabView: function(tabView) {
- console.debug('registerTabView is deprecated! It will be removed in nextcloud 20.');
+ OC.debug && console.debug('registerTabView is deprecated! It will be removed in nextcloud 20.');
const enabled = tabView.canDisplay || undefined
if (tabView.id) {
OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab({
@@ -3905,7 +3905,7 @@
* Register a detail view to be added to all views
*/
registerDetailView: function(detailView) {
- console.debug('registerDetailView is deprecated! It will be removed in nextcloud 20.');
+ OC.debug && console.debug('registerDetailView is deprecated! It will be removed in nextcloud 20.');
if (detailView.el) {
OCA.Files.Sidebar.registerSecondaryView(detailView)
}
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index f37ad88c86a..7ce9079760f 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -281,7 +281,7 @@
* @deprecated used OCA.Files.FileList.generatePreviewUrl instead
*/
generatePreviewUrl: function(urlSpec) {
- console.debug('DEPRECATED: please use generatePreviewUrl() from an OCA.Files.FileList instance');
+ OC.debug && console.debug('DEPRECATED: please use generatePreviewUrl() from an OCA.Files.FileList instance');
return OCA.Files.App.fileList.generatePreviewUrl(urlSpec);
},
@@ -290,7 +290,7 @@
* @deprecated used OCA.Files.FileList.lazyLoadPreview instead
*/
lazyLoadPreview : function(path, mime, ready, width, height, etag) {
- console.debug('DEPRECATED: please use lazyLoadPreview() from an OCA.Files.FileList instance');
+ OC.debug && console.debug('DEPRECATED: please use lazyLoadPreview() from an OCA.Files.FileList instance');
return FileList.lazyLoadPreview({
path: path,
mime: mime,