Signed-off-by: Christopher Ng <chrng8@gmail.com>
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('//', '/'))
}
},