Mercurial > gemma
comparison client/src/router.js @ 2968:8b32574bed09 unified_import
wip
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 01 Apr 2019 15:12:49 +0200 |
parents | b42d10120cad |
children | e161e1ffb6b5 |
comparison
equal
deleted
inserted
replaced
2877:55a9c7965e25 | 2968:8b32574bed09 |
---|---|
170 store.commit("application/searchQuery", ""); | 170 store.commit("application/searchQuery", ""); |
171 store.commit("application/showContextBox", true); | 171 store.commit("application/showContextBox", true); |
172 store.commit("application/contextBoxContent", "bottlenecks"); | 172 store.commit("application/contextBoxContent", "bottlenecks"); |
173 store.commit("application/showSearchbar", true); | 173 store.commit("application/showSearchbar", true); |
174 next(); | 174 next(); |
175 } | |
176 }, | |
177 { | |
178 path: "/imports/configuration", | |
179 name: "importconfiguration", | |
180 component: Maplayer, | |
181 meta: { | |
182 requiresAuth: true | |
183 }, | |
184 beforeEnter: (to, from, next) => { | |
185 const isWaterwayAdmin = store.getters["user/isWaterwayAdmin"]; | |
186 if (!isWaterwayAdmin) { | |
187 next("/login"); | |
188 } else { | |
189 store.commit("application/searchQuery", ""); | |
190 store.commit("application/showContextBox", true); | |
191 store.commit("application/contextBoxContent", "importconfiguration"); | |
192 store.commit("application/showSearchbar", true); | |
193 next(); | |
194 } | |
175 } | 195 } |
176 }, | 196 }, |
177 { | 197 { |
178 path: "/imports/overview/:id?", | 198 path: "/imports/overview/:id?", |
179 name: "importoverview", | 199 name: "importoverview", |