diff options
author | OzoneGrif | 2020-02-24 01:15:14 +0100 |
---|---|---|
committer | GitHub | 2020-02-24 01:15:14 +0100 |
commit | 2a458e25c0510798120dddbd85cef5ee440c2a2a (patch) | |
tree | 77d6958950e1c6a2ad425da1c095fefce58b05e4 /viewer/src/views/GalleryDirectory.vue | |
parent | e42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff) | |
parent | eb00c2a7874608f70ec7768eae8d006a22bc0a54 (diff) | |
download | ldgallery-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.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> |