diff options
author | Zero~Informatique | 2019-12-22 03:50:40 +0100 |
---|---|---|
committer | Zero~Informatique | 2019-12-22 03:50:40 +0100 |
commit | e34be1261d9219e5b2b92ebe271f609f11d55f63 (patch) | |
tree | f9bb705d0b7ec819b48ddfd5a318642ca239aff3 /viewer/src/views/Gallery.vue | |
parent | c2b4c5d144db17ebf2dc9de32ba25cc836831ae2 (diff) | |
download | ldgallery-e34be1261d9219e5b2b92ebe271f609f11d55f63.tar.gz |
vewer: Tags indexing and search input
Diffstat (limited to 'viewer/src/views/Gallery.vue')
-rw-r--r-- | viewer/src/views/Gallery.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue index 954903a..2020280 100644 --- a/viewer/src/views/Gallery.vue +++ b/viewer/src/views/Gallery.vue | |||
@@ -13,7 +13,7 @@ import GalleryImage from "./GalleryImage.vue"; | |||
13 | @Component({ | 13 | @Component({ |
14 | components: { GalleryDirectory, GalleryImage }, | 14 | components: { GalleryDirectory, GalleryImage }, |
15 | }) | 15 | }) |
16 | export default class Root extends Vue { | 16 | export default class Gallery extends Vue { |
17 | @Prop(String) readonly pathMatch!: string; | 17 | @Prop(String) readonly pathMatch!: string; |
18 | 18 | ||
19 | get isDirectory(): boolean { | 19 | get isDirectory(): boolean { |
@@ -25,8 +25,8 @@ export default class Root extends Vue { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | get currentItem(): Gallery.Item | null { | 27 | get currentItem(): Gallery.Item | null { |
28 | const galleryItems = this.$galleryStore.galleryItems; | 28 | const galleryItemsRoot = this.$galleryStore.galleryItemsRoot; |
29 | if (galleryItems) return this.searchCurrentItem(galleryItems, this.pathMatch); | 29 | if (galleryItemsRoot) return this.searchCurrentItem(galleryItemsRoot, this.pathMatch); |
30 | return null; | 30 | return null; |
31 | } | 31 | } |
32 | 32 | ||