aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GalleryDirectory.vue
diff options
context:
space:
mode:
authorOzoneGrif2020-02-24 01:15:14 +0100
committerGitHub2020-02-24 01:15:14 +0100
commit2a458e25c0510798120dddbd85cef5ee440c2a2a (patch)
tree77d6958950e1c6a2ad425da1c095fefce58b05e4 /viewer/src/views/GalleryDirectory.vue
parente42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff)
parenteb00c2a7874608f70ec7768eae8d006a22bc0a54 (diff)
downloadldgallery-2a458e25c0510798120dddbd85cef5ee440c2a2a.tar.gz
Merge pull request #144 from pacien/oz-search-overhaul
viewer: major code and search mode overhaul > Search indicator in the breadcrumbs: should be shown as clickable instead of being .disabled Not agreeing with this one.
Diffstat (limited to 'viewer/src/views/GalleryDirectory.vue')
-rw-r--r--viewer/src/views/GalleryDirectory.vue14
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">
31import { Component, Vue, Prop } from "vue-property-decorator"; 25import { Component, Vue, Prop } from "vue-property-decorator";
32import Tools from "@/tools"; 26import Navigation from "@/services/navigation";
33 27
34@Component 28@Component
35export default class GalleryDirectory extends Vue { 29export 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>