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 +++--- viewer/src/views/MainLayout.vue | 7 +++++-- viewer/src/views/PanelLeft.vue | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 viewer/src/views/PanelLeft.vue (limited to 'viewer/src/views') 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; } diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue index 9f3a17b..2afd4b9 100644 --- a/viewer/src/views/MainLayout.vue +++ b/viewer/src/views/MainLayout.vue @@ -1,7 +1,7 @@