Mercurial > gemma
changeset 2409:d9758395e09d
fix: emptying search now in router
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 11:38:20 +0100 |
parents | 02d30251d594 |
children | 27d3e9eda8b6 |
files | client/src/router.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/router.js Thu Feb 28 11:25:50 2019 +0100 +++ b/client/src/router.js Thu Feb 28 11:38:20 2019 +0100 @@ -168,6 +168,7 @@ requiresAuth: true }, beforeEnter: (to, from, next) => { + this.$store.commit("application/searchQuery", ""); store.commit("application/showContextBox", false); store.commit("application/contextBoxContent", ""); store.commit("application/showSearchbar", false); @@ -182,6 +183,7 @@ requiresAuth: true }, beforeEnter: (to, from, next) => { + this.$store.commit("application/searchQuery", ""); store.commit("application/showContextBox", true); store.commit("application/contextBoxContent", "bottlenecks"); store.commit("application/showSearchbar", true); @@ -200,6 +202,7 @@ if (!isWaterwayAdmin) { next("/"); } else { + this.$store.commit("application/searchQuery", ""); store.commit("application/showContextBox", true); store.commit("application/contextBoxContent", "staging"); store.commit("application/showSearchbar", true); @@ -219,6 +222,7 @@ if (!isSysadmin) { next("/"); } else { + this.$store.commit("application/searchQuery", ""); store.commit("application/showContextBox", true); store.commit("application/contextBoxContent", "stretches"); store.commit("application/showSearchbar", true);