Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix download URL of non-dav files
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
ChristophWurst authored and nextcloud-command committed Aug 25, 2022
commit d9a73dd4f408615b3e38ebf90eac7aad0e4267b9
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<NcActionLink v-if="canDownload"
:download="currentFile.basename"
:close-after-click="true"
:href="currentFile.davPath">
:href="downloadPath">
<template #icon>
<Download :size="24" />
</template>
Expand Down Expand Up @@ -212,6 +212,9 @@ export default {
},

computed: {
downloadPath() {
return this.currentFile.source ?? this.currentFile.davPath
},
hasPrevious() {
return this.fileList.length > 1
},
Expand Down