Skip to content

Commit

Permalink
fix: prevent sidebar from opening
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 9, 2023
1 parent 10b0d67 commit 10a921e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,10 @@
tr.addClass('highlighted');
this._currentFileModel = model;

const secondaryActionsOpen = Boolean(tr.find('.actions-secondary-vue').length)

// open sidebar and set file
if (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== '')) {
if (!secondaryActionsOpen && (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== ''))) {
OCA.Files.Sidebar.open(path.replace('//', '/'))
}
},
Expand Down

0 comments on commit 10a921e

Please sign in to comment.