# HG changeset patch # User Thomas Junk # Date 1550228156 -3600 # Node ID 2e40909a975d61635a5a2852f2eb831c1655e323 # Parent 6689b7e1f28b605529dc6abd0c437309a8ae44e0 clean searchbar when context is changed diff -r 6689b7e1f28b -r 2e40909a975d client/src/components/Contextbox.vue --- 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", diff -r 6689b7e1f28b -r 2e40909a975d client/src/components/Sidebar.vue --- 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);