diff options
Diffstat (limited to 'viewer/src/views/GalleryDirectory.vue')
-rw-r--r-- | viewer/src/views/GalleryDirectory.vue | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/viewer/src/views/GalleryDirectory.vue b/viewer/src/views/GalleryDirectory.vue index 162ef6e..6e68578 100644 --- a/viewer/src/views/GalleryDirectory.vue +++ b/viewer/src/views/GalleryDirectory.vue | |||
@@ -18,18 +18,12 @@ | |||
18 | --> | 18 | --> |
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <div class="thumbnail-tiles"> | 21 | <ld-gallery :items="orderedItems()" :noresult="$t('directory.no-results')" /> |
22 | <div v-for="(item) in orderedItems" :key="item.path"> | ||
23 | <router-link :to="item.path"> | ||
24 | <ld-thumbnail :item="item" /> | ||
25 | </router-link> | ||
26 | </div> | ||
27 | </div> | ||
28 | </template> | 22 | </template> |
29 | 23 | ||
30 | <script lang="ts"> | 24 | <script lang="ts"> |
31 | import { Component, Vue, Prop } from "vue-property-decorator"; | 25 | import { Component, Vue, Prop } from "vue-property-decorator"; |
32 | import Tools from "@/tools"; | 26 | import Navigation from "@/services/navigation"; |
33 | 27 | ||
34 | @Component | 28 | @Component |
35 | export default class GalleryDirectory extends Vue { | 29 | export default class GalleryDirectory extends Vue { |
@@ -39,8 +33,8 @@ export default class GalleryDirectory extends Vue { | |||
39 | this.$uiStore.fullscreen = false; | 33 | this.$uiStore.fullscreen = false; |
40 | } | 34 | } |
41 | 35 | ||
42 | get orderedItems() { | 36 | orderedItems() { |
43 | return Tools.directoriesFirst(this.directory.properties.items); | 37 | return Navigation.directoriesFirst(this.directory.properties.items); |
44 | } | 38 | } |
45 | } | 39 | } |
46 | </script> | 40 | </script> |