From e34be1261d9219e5b2b92ebe271f609f11d55f63 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 22 Dec 2019 03:50:40 +0100 Subject: vewer: Tags indexing and search input --- viewer/src/views/Gallery.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'viewer/src/views/Gallery.vue') 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"; @Component({ components: { GalleryDirectory, GalleryImage }, }) -export default class Root extends Vue { +export default class Gallery extends Vue { @Prop(String) readonly pathMatch!: string; get isDirectory(): boolean { @@ -25,8 +25,8 @@ export default class Root extends Vue { } get currentItem(): Gallery.Item | null { - const galleryItems = this.$galleryStore.galleryItems; - if (galleryItems) return this.searchCurrentItem(galleryItems, this.pathMatch); + const galleryItemsRoot = this.$galleryStore.galleryItemsRoot; + if (galleryItemsRoot) return this.searchCurrentItem(galleryItemsRoot, this.pathMatch); return null; } -- cgit v1.2.3