diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-27 19:07:09 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 19:07:09 +0330 |
commit | bbfe2fb821f00713f46fd896a41dfc62cc02c31a (patch) | |
tree | 22923a6d3a78f7f1d780e958ff118a669c6c8c63 /apps/files/js | |
parent | 8c64ccae01ef3143a47dcca0b7ddb115d601c2f1 (diff) | |
parent | 266436b76788d14e061bbe1f013bc052edc8041f (diff) | |
download | nextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.tar.gz nextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.zip |
Merge branch 'master' into replace_strpos_calls_in_dav_app
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 | ||||
-rw-r--r-- | apps/files/js/files.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 442fdec9322..6b964981a47 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.warn('showDetailsView is deprecated! Use OCA.Files.Sidebar.activeTab. It will be removed in nextcloud 20.'); + OC.debug && console.warn('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.warn('registerTabView is deprecated! It will be removed in nextcloud 20.'); + OC.debug && console.warn('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.warn('registerDetailView is deprecated! It will be removed in nextcloud 20.'); + OC.debug && console.warn('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 b0c38248183..1788ebe9d3f 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.warn('DEPRECATED: please use generatePreviewUrl() from an OCA.Files.FileList instance'); + OC.debug && console.warn('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.warn('DEPRECATED: please use lazyLoadPreview() from an OCA.Files.FileList instance'); + OC.debug && console.warn('DEPRECATED: please use lazyLoadPreview() from an OCA.Files.FileList instance'); return FileList.lazyLoadPreview({ path: path, mime: mime, |