aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GallerySearch.vue
blob: 887c1a3456a279a3a8a3c29566ec98da02a92b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
  <div class="flex">
    <div v-for="(item) in items" :key="item.path">
      <router-link :to="item.path" @click.native="$uiStore.setModeNavigation()">
        <gallery-thumbnail :item="item" />
      </router-link>
    </div>
    <div v-if="items.length===0">{{$t('search.no-results')}}</div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
import GalleryThumbnail from "./GalleryThumbnail.vue";

@Component({
  components: { GalleryThumbnail },
})
export default class GalleryImage extends Vue {
  @Prop({ required: true }) readonly items!: Gallery.Item[];
}
</script>

<style lang="scss">
</style>