From f2ff937fe4a5782741886ef4920fd0e284775463 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 27 Feb 2020 23:26:00 +0100 Subject: viewer: tag index bugfix Search from the URL requires a strict match instead of a loose match Category search was case sensitive Category + disambiguation was matching like an intersection of both tags instead of being hard-coupled Removed the logs for the release (coming soon) --- viewer/src/views/GalleryNavigation.vue | 1 - viewer/src/views/PanelLeft.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'viewer/src/views') diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue index fafb2ed..7c6d11b 100644 --- a/viewer/src/views/GalleryNavigation.vue +++ b/viewer/src/views/GalleryNavigation.vue @@ -49,7 +49,6 @@ export default class GalleryNavigation extends Vue { @Watch("path") pathChanged() { - console.log("Path: ", this.path); this.$galleryStore.setCurrentPath(this.path); } diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 54b9c63..5b3196a 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue @@ -72,7 +72,7 @@ export default class PanelLeft extends Vue { const query = Object.keys(route.query); if (query.length > 0) { const tagsIndex = this.$galleryStore.tagsIndex; - this.searchFilters = Object.keys(route.query).flatMap(filter => IndexFactory.searchTags(tagsIndex, filter)); + this.searchFilters = Object.keys(route.query).flatMap(filter => IndexFactory.searchTags(tagsIndex, filter, true)); this.$galleryStore.setCurrentSearch([...this.searchFilters]); } } -- cgit v1.2.3