aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
authorZero~Informatique2020-02-27 23:26:00 +0100
committerZero~Informatique2020-02-27 23:26:31 +0100
commitf2ff937fe4a5782741886ef4920fd0e284775463 (patch)
tree8a51b6ceb74bd359ac282a7ff3d6a75f0a105de7 /viewer/src/views
parentf09e9d9fa29284bd9ae872efe5ba1d526e349011 (diff)
downloadldgallery-f2ff937fe4a5782741886ef4920fd0e284775463.tar.gz
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)
Diffstat (limited to 'viewer/src/views')
-rw-r--r--viewer/src/views/GalleryNavigation.vue1
-rw-r--r--viewer/src/views/PanelLeft.vue2
2 files changed, 1 insertions, 2 deletions
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 {
49 49
50 @Watch("path") 50 @Watch("path")
51 pathChanged() { 51 pathChanged() {
52 console.log("Path: ", this.path);
53 this.$galleryStore.setCurrentPath(this.path); 52 this.$galleryStore.setCurrentPath(this.path);
54 } 53 }
55 54
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 {
72 const query = Object.keys(route.query); 72 const query = Object.keys(route.query);
73 if (query.length > 0) { 73 if (query.length > 0) {
74 const tagsIndex = this.$galleryStore.tagsIndex; 74 const tagsIndex = this.$galleryStore.tagsIndex;
75 this.searchFilters = Object.keys(route.query).flatMap(filter => IndexFactory.searchTags(tagsIndex, filter)); 75 this.searchFilters = Object.keys(route.query).flatMap(filter => IndexFactory.searchTags(tagsIndex, filter, true));
76 this.$galleryStore.setCurrentSearch([...this.searchFilters]); 76 this.$galleryStore.setCurrentSearch([...this.searchFilters]);
77 } 77 }
78 } 78 }