aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views')
-rw-r--r--viewer/src/views/PanelLeft.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index fd117a6..eb921b7 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -34,6 +34,7 @@
34<script lang="ts"> 34<script lang="ts">
35import { Component, Vue, Prop } from "vue-property-decorator"; 35import { Component, Vue, Prop } from "vue-property-decorator";
36import { Dictionary } from "vue-router/types/router"; 36import { Dictionary } from "vue-router/types/router";
37import Navigation from "../services/navigation";
37 38
38@Component 39@Component
39export default class PanelLeft extends Vue { 40export default class PanelLeft extends Vue {
@@ -43,7 +44,8 @@ export default class PanelLeft extends Vue {
43 } 44 }
44 45
45 search() { 46 search() {
46 this.$router.push({ query: this.serializeSearch() }).catch(err => { 47 const lastDirectory = Navigation.getLastDirectory(this.$galleryStore.currentItemPath);
48 this.$router.push({ path: lastDirectory.path, query: this.serializeSearch() }).catch(err => {
47 if (err.name !== "NavigationDuplicated") throw err; 49 if (err.name !== "NavigationDuplicated") throw err;
48 }); 50 });
49 } 51 }