summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-01-08 09:14:06 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-15 17:47:53 +0100
commitfac588297d5b9f9f5a15188fd75ad2596127b0ee (patch)
tree094c1cb248e6544868db6d0a9e8f4c15fa16d57a /apps/files/js
parent940b73280df6cb424d8455ef0023067a2b2e6a17 (diff)
downloadnextcloud-server-fac588297d5b9f9f5a15188fd75ad2596127b0ee.tar.gz
nextcloud-server-fac588297d5b9f9f5a15188fd75ad2596127b0ee.zip
Do not show sidebar on rename (fixes #18613)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 108e10f4df6..821a11804b4 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -630,7 +630,7 @@
* @param {string|OCA.Files.FileInfoModel} fileName file name from the current list or a FileInfoModel object
* @param {boolean} [show=true] whether to open the sidebar if it was closed
*/
- _updateDetailsView: function(fileName) {
+ _updateDetailsView: function(fileName, show) {
if (!(OCA.Files && OCA.Files.Sidebar)) {
console.error('No sidebar available');
return;
@@ -659,7 +659,9 @@
this._currentFileModel = model;
// open sidebar and set file
- OCA.Files.Sidebar.open(path.replace('//', '/'))
+ if (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== '')) {
+ OCA.Files.Sidebar.open(path.replace('//', '/'))
+ }
},
/**