diff --git a/frontend/src/components/Search.vue b/frontend/src/components/Search.vue index 6b498218..fc8f976f 100644 --- a/frontend/src/components/Search.vue +++ b/frontend/src/components/Search.vue @@ -90,10 +90,10 @@ export default { }; }, watch: { - show(val, old) { - this.active = val === "search"; + currentPrompt(val, old) { + this.active = val?.prompt === "search"; - if (old === "search" && !this.active) { + if (old?.prompt === "search" && !this.active) { if (this.reload) { this.setReload(true); } @@ -116,8 +116,8 @@ export default { }, }, computed: { - ...mapState(["user", "show"]), - ...mapGetters(["isListing"]), + ...mapState(["user"]), + ...mapGetters(["isListing", "currentPrompt"]), boxes() { return boxes; }, diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 4394f55a..9a4c667d 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -133,9 +133,9 @@ export default { }, computed: { ...mapState(["user"]), - ...mapGetters(["isLogged"]), + ...mapGetters(["isLogged", "currentPrompt"]), active() { - return this.$store.state.show === "sidebar"; + return this.currentPrompt?.prompt === "sidebar"; }, signup: () => signup, version: () => version, diff --git a/frontend/src/components/header/HeaderBar.vue b/frontend/src/components/header/HeaderBar.vue index 65c144a9..a0aab314 100644 --- a/frontend/src/components/header/HeaderBar.vue +++ b/frontend/src/components/header/HeaderBar.vue @@ -11,7 +11,7 @@ -