diff options
Diffstat (limited to 'viewer/src/views/GalleryDirectory.vue')
-rw-r--r-- | viewer/src/views/GalleryDirectory.vue | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue index eb98595..30f651c 100644 --- a/viewer/src/views/GalleryDirectory.vue +++ b/viewer/src/views/GalleryDirectory.vue | |||
@@ -18,26 +18,24 @@ | |||
18 | --> | 18 | --> |
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <div> | 21 | <ld-gallery :items="orderedItems()" :noresult="$t('directory.no-results')" /> |
22 | <div class="flex"> | ||
23 | <div v-for="(item) in directory.properties.items" :key="item.path"> | ||
24 | <router-link :to="item.path"> | ||
25 | <gallery-thumbnail :item="item" /> | ||
26 | </router-link> | ||
27 | </div> | ||
28 | </div> | ||
29 | </div> | ||
30 | </template> | 22 | </template> |
31 | 23 | ||
32 | <script lang="ts"> | 24 | <script lang="ts"> |
33 | import { Component, Vue, Prop } from "vue-property-decorator"; | 25 | import { Component, Vue, Prop } from "vue-property-decorator"; |
34 | import GalleryThumbnail from "./GalleryThumbnail.vue"; | 26 | import Navigation from "@/services/navigation"; |
35 | 27 | ||
36 | @Component({ | 28 | @Component |
37 | components: { GalleryThumbnail }, | ||
38 | }) | ||
39 | export default class GalleryDirectory extends Vue { | 29 | export default class GalleryDirectory extends Vue { |
40 | @Prop({ required: true }) readonly directory!: Gallery.Directory; | 30 | @Prop({ required: true }) readonly directory!: Gallery.Directory; |
31 | |||
32 | mounted() { | ||
33 | this.$uiStore.toggleFullscreen(false); | ||
34 | } | ||
35 | |||
36 | orderedItems() { | ||
37 | return Navigation.directoriesFirst(this.directory.properties.items); | ||
38 | } | ||
41 | } | 39 | } |
42 | </script> | 40 | </script> |
43 | 41 | ||