Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2281:6689b7e1f28b | 2282:2e40909a975d |
---|---|
212 logoff() { | 212 logoff() { |
213 logOff(); | 213 logOff(); |
214 }, | 214 }, |
215 toggleContextBox(context) { | 215 toggleContextBox(context) { |
216 if (this.$route.path !== "/") this.$router.push("/"); | 216 if (this.$route.path !== "/") this.$router.push("/"); |
217 this.$store.commit("application/searchQuery", ""); | |
217 this.$store.commit("application/showContextBox", true); | 218 this.$store.commit("application/showContextBox", true); |
218 this.$store.commit("application/contextBoxContent", context); | 219 this.$store.commit("application/contextBoxContent", context); |
219 this.$store.commit("application/showSearchbar", true); | 220 this.$store.commit("application/showSearchbar", true); |
220 }, | 221 }, |
221 isActive(item) { | 222 isActive(item) { |