summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-02 19:15:01 -0700
committerAndy Scherzinger <info@andy-scherzinger.de>2023-08-10 12:28:19 +0200
commit103f2c6bc39e44e001eee8d6c206a66c21bf8394 (patch)
tree584d78c35fa61a6fa540498c57ac5d75fdeda789 /apps/files/js
parent118ea83b414c00e128d6daf2f9124bee39b3084e (diff)
downloadnextcloud-server-103f2c6bc39e44e001eee8d6c206a66c21bf8394.tar.gz
nextcloud-server-103f2c6bc39e44e001eee8d6c206a66c21bf8394.zip
fix: prevent sidebar from opening
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 10a921ea33450c143a0c2d8c5e72e1c5d59dff28)
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6b964981a47..a3c868789fc 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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('//', '/'))
}
},