diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-08 09:14:06 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-01-15 11:00:07 +0100 |
commit | 8a5632d3a13bd84cda3c5bd499020e962e549f50 (patch) | |
tree | c014e3309dc0a883b3e49231575ad0c19ab38c4c | |
parent | f7b267a61b355ed7276f664051373da357aa4713 (diff) | |
download | nextcloud-server-8a5632d3a13bd84cda3c5bd499020e962e549f50.tar.gz nextcloud-server-8a5632d3a13bd84cda3c5bd499020e962e549f50.zip |
Do not show sidebar on rename (fixes #18613)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/files/js/filelist.js | 6 |
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('//', '/')) + } }, /** |