aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/PanelLeft.vue
diff options
context:
space:
mode:
authorZero~Informatique2020-02-28 18:50:12 +0100
committerZero~Informatique2020-02-28 18:50:12 +0100
commit7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a (patch)
treec7621a6e00610e1d1d1b2564203908cd119ca99b /viewer/src/views/PanelLeft.vue
parentfe699fb16018aa22b121b48a85ef228f4b5c6bfd (diff)
downloadldgallery-7f0b8367a2092c5ffd69e9e46d055cbd605c0e3a.tar.gz
viewer: more minor architectural and performance improvement
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>