diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-01-03 11:47:10 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-01-05 16:46:39 -0800 |
commit | 5e7ba125f0b6125c449fcf45763681d0a09af353 (patch) | |
tree | 1a21f12999305aed0d499ad20a5e8127346e8f71 | |
parent | 568a997a6895c44c4428d513a0514eef6d97a774 (diff) | |
download | nextcloud-server-5e7ba125f0b6125c449fcf45763681d0a09af353.tar.gz nextcloud-server-5e7ba125f0b6125c449fcf45763681d0a09af353.zip |
fix(files): Fix unresponsive file click to download
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/files/src/components/FileEntry.vue | 2 | ||||
-rw-r--r-- | apps/files/src/components/FileEntryGrid.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index a6ca70d2800..5e5476b08f7 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -416,8 +416,8 @@ export default defineComponent({ }, execDefaultAction(event) { - event.preventDefault() if (event.ctrlKey || event.metaKey) { + event.preventDefault() window.open(generateUrl('/f/{fileId}', { fileId: this.fileid })) return false } diff --git a/apps/files/src/components/FileEntryGrid.vue b/apps/files/src/components/FileEntryGrid.vue index 682c5fbbc23..a43f9c98b75 100644 --- a/apps/files/src/components/FileEntryGrid.vue +++ b/apps/files/src/components/FileEntryGrid.vue @@ -283,8 +283,8 @@ export default Vue.extend({ }, execDefaultAction(event) { - event.preventDefault() if (event.ctrlKey || event.metaKey) { + event.preventDefault() window.open(generateUrl('/f/{fileId}', { fileId: this.fileid })) return false } |