aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-02 19:15:01 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-09 10:41:18 -0700
commit10a921ea33450c143a0c2d8c5e72e1c5d59dff28 (patch)
treee0b87cac6b7ee576f6eac77728ff0f2464a9e66e
parent10b0d6737eeb60bbb3ccd144a010b01dcba19607 (diff)
downloadnextcloud-server-10a921ea33450c143a0c2d8c5e72e1c5d59dff28.tar.gz
nextcloud-server-10a921ea33450c143a0c2d8c5e72e1c5d59dff28.zip
fix: prevent sidebar from opening
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-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('//', '/'))
}
},