Skip to content

Commit

Permalink
Do not show sidebar on rename (fixes #18613)
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Jan 8, 2020
1 parent 22947e4 commit cfac847
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.open(path.replace('//', '/'))
}
},

/**
Expand Down

0 comments on commit cfac847

Please sign in to comment.