diff client/src/components/Sidebar.vue @ 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 5f3110aa1ad1
children 514193fd0120
line wrap: on
line diff
--- 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);