Skip to content

Commit

Permalink
Fix download URL of non-dav files
Browse files Browse the repository at this point in the history
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
1 parent 24ffc73 commit d9a73dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit d9a73dd

Please sign in to comment.