aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GallerySearch.vue
diff options
context:
space:
mode:
authorZero~Informatique2020-01-31 09:17:57 +0100
committerZero~Informatique2020-01-31 09:27:06 +0100
commit170da2d55fec0359cbac780786383710b734eda7 (patch)
treeeb6fe6f60e9b83a9e5886b504aa65521711fd4a3 /viewer/src/views/GallerySearch.vue
parenta7d459a2620fa9523dd7ce8c9de519133ad5b1b7 (diff)
downloadldgallery-170da2d55fec0359cbac780786383710b734eda7.tar.gz
viewer: code cleaning, moved some views to components
Diffstat (limited to 'viewer/src/views/GallerySearch.vue')
-rw-r--r--viewer/src/views/GallerySearch.vue7
1 files changed, 2 insertions, 5 deletions
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue
index 870d3e2..4e843b9 100644
--- a/viewer/src/views/GallerySearch.vue
+++ b/viewer/src/views/GallerySearch.vue
@@ -21,7 +21,7 @@
21 <div class="thumbnail-tiles"> 21 <div class="thumbnail-tiles">
22 <div v-for="(item) in items" :key="item.path"> 22 <div v-for="(item) in items" :key="item.path">
23 <router-link :to="item.path" @click.native="$uiStore.setModeNavigation()"> 23 <router-link :to="item.path" @click.native="$uiStore.setModeNavigation()">
24 <gallery-thumbnail :item="item" /> 24 <ld-thumbnail :item="item" />
25 </router-link> 25 </router-link>
26 </div> 26 </div>
27 <div v-if="items.length===0">{{$t('search.no-results')}}</div> 27 <div v-if="items.length===0">{{$t('search.no-results')}}</div>
@@ -33,11 +33,8 @@
33 33
34<script lang="ts"> 34<script lang="ts">
35import { Component, Vue, Prop } from "vue-property-decorator"; 35import { Component, Vue, Prop } from "vue-property-decorator";
36import GalleryThumbnail from "./GalleryThumbnail.vue";
37 36
38@Component({ 37@Component
39 components: { GalleryThumbnail },
40})
41export default class GalleryPicture extends Vue { 38export default class GalleryPicture extends Vue {
42 @Prop({ required: true }) readonly items!: Gallery.Item[]; 39 @Prop({ required: true }) readonly items!: Gallery.Item[];
43} 40}