aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GalleryThumbnail.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/GalleryThumbnail.vue')
-rw-r--r--viewer/src/views/GalleryThumbnail.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue
index 8e3e826..fdfd9d3 100644
--- a/viewer/src/views/GalleryThumbnail.vue
+++ b/viewer/src/views/GalleryThumbnail.vue
@@ -1,5 +1,11 @@
1<template> 1<template>
2 <img class="thumbnail" :src="imageSrc" :title="item.path" /> 2 <div>
3 <img v-if="item.thumbnail" class="thumbnail" :src="imageSrc" :title="item.path" />
4 <div v-else class="flex-column flex-center">
5 <fa-icon icon="folder" class="fa-4x" />
6 {{item.path}}
7 </div>
8 </div>
3</template> 9</template>
4 10
5<script lang="ts"> 11<script lang="ts">
@@ -10,7 +16,7 @@ export default class GalleryThumbnail extends Vue {
10 @Prop({ required: true }) readonly item!: Gallery.Item; 16 @Prop({ required: true }) readonly item!: Gallery.Item;
11 17
12 get imageSrc() { 18 get imageSrc() {
13 return `/gallery${this.item.thumbnail.path}`; 19 return `${process.env.VUE_APP_DATA_URL}${this.item.thumbnail}`;
14 } 20 }
15} 21}
16</script> 22</script>