diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-02 19:15:01 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-08-09 10:41:18 -0700 |
commit | 10a921ea33450c143a0c2d8c5e72e1c5d59dff28 (patch) | |
tree | e0b87cac6b7ee576f6eac77728ff0f2464a9e66e | |
parent | 10b0d6737eeb60bbb3ccd144a010b01dcba19607 (diff) | |
download | nextcloud-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.js | 4 |
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('//', '/')) } }, |