Mercurial > gemma
changeset 2282:2e40909a975d
clean searchbar when context is changed
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 15 Feb 2019 11:55:56 +0100 |
parents | 6689b7e1f28b |
children | 1169f18a0f11 |
files | client/src/components/Contextbox.vue client/src/components/Sidebar.vue |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Contextbox.vue Fri Feb 15 11:44:38 2019 +0100 +++ b/client/src/components/Contextbox.vue Fri Feb 15 11:55:56 2019 +0100 @@ -52,6 +52,7 @@ }, methods: { close() { + this.$store.commit("application/searchQuery", ""); this.$store.commit("application/showContextBox", false); this.$store.commit( "application/showSearchbar",
--- a/client/src/components/Sidebar.vue Fri Feb 15 11:44:38 2019 +0100 +++ b/client/src/components/Sidebar.vue Fri Feb 15 11:55:56 2019 +0100 @@ -214,6 +214,7 @@ }, toggleContextBox(context) { if (this.$route.path !== "/") this.$router.push("/"); + this.$store.commit("application/searchQuery", ""); this.$store.commit("application/showContextBox", true); this.$store.commit("application/contextBoxContent", context); this.$store.commit("application/showSearchbar", true);