aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdDownload.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/components/LdDownload.vue')
-rw-r--r--viewer/src/components/LdDownload.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/viewer/src/components/LdDownload.vue b/viewer/src/components/LdDownload.vue
index d7dfb7d..7b09dab 100644
--- a/viewer/src/components/LdDownload.vue
+++ b/viewer/src/components/LdDownload.vue
@@ -20,10 +20,10 @@
20 20
21<template> 21<template>
22 <div class="container-vh-centering"> 22 <div class="container-vh-centering">
23 <a :class="$style.content" :download="itemFileName()" :href="itemDownloadUrl()"> 23 <a :class="$style.content" :download="itemFileName" :href="itemDownloadUrl">
24 <!-- TODO: show thumbnail instead of this generic file download icon? --> 24 <!-- TODO: show thumbnail instead of this generic file download icon? -->
25 <fa-icon :class="$style.icon" icon="file-download" size="6x" /> 25 <fa-icon :class="$style.icon" icon="file-download" size="6x" />
26 <div>{{ $t("download.download-file-fmt", [itemFileName()]) }}</div> 26 <div>{{ $t("download.download-file-fmt", [itemFileName]) }}</div>
27 </a> 27 </a>
28 </div> 28 </div>
29</template> 29</template>
@@ -32,14 +32,15 @@
32import { Component, Prop, Vue } from "vue-property-decorator"; 32import { Component, Prop, Vue } from "vue-property-decorator";
33import Navigation from "@/services/navigation"; 33import Navigation from "@/services/navigation";
34 34
35@Component export default class LdDownload extends Vue { 35@Component
36export default class LdDownload extends Vue {
36 @Prop({ required: true }) readonly item!: Gallery.Other; 37 @Prop({ required: true }) readonly item!: Gallery.Other;
37 38
38 itemFileName(): string { 39 get itemFileName(): string {
39 return Navigation.getFileName(this.item); 40 return Navigation.getFileName(this.item);
40 } 41 }
41 42
42 itemDownloadUrl(): string { 43 get itemDownloadUrl(): string {
43 return this.$galleryStore.resourceRoot + this.item.properties.resource; 44 return this.$galleryStore.resourceRoot + this.item.properties.resource;
44 } 45 }
45} 46}