aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/PanelLeft.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/PanelLeft.vue')
-rw-r--r--viewer/src/views/PanelLeft.vue6
1 files changed, 1 insertions, 5 deletions
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index 5b3196a..9e9a600 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -70,11 +70,7 @@ export default class PanelLeft extends Vue {
70 @Watch("$route") 70 @Watch("$route")
71 restoreSearchFilters(route: Route) { 71 restoreSearchFilters(route: Route) {
72 const query = Object.keys(route.query); 72 const query = Object.keys(route.query);
73 if (query.length > 0) { 73 if (query.length > 0) this.$galleryStore.search(query).then(search => (this.searchFilters = [...search]));
74 const tagsIndex = this.$galleryStore.tagsIndex;
75 this.searchFilters = Object.keys(route.query).flatMap(filter => IndexFactory.searchTags(tagsIndex, filter, true));
76 this.$galleryStore.setCurrentSearch([...this.searchFilters]);
77 }
78 } 74 }
79} 75}
80</script> 76</script>