Mercurial > gemma
comparison client/src/router.js @ 2651:9f3856337f55
import_overview: new unified interface as default
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 14 Mar 2019 14:53:17 +0100 |
parents | a542045f28a6 |
children | a4962c302af0 |
comparison
equal
deleted
inserted
replaced
2650:a308baa7e7af | 2651:9f3856337f55 |
---|---|
186 if (!isWaterwayAdmin) { | 186 if (!isWaterwayAdmin) { |
187 next("/"); | 187 next("/"); |
188 } else { | 188 } else { |
189 store.commit("application/showContextBox", true); | 189 store.commit("application/showContextBox", true); |
190 store.commit("application/contextBoxContent", "importoverview"); | 190 store.commit("application/contextBoxContent", "importoverview"); |
191 store.commit("application/showSearchbar", true); | |
192 next(); | |
193 } | |
194 } | |
195 }, | |
196 { | |
197 path: "/imports/overview2/:id?", | |
198 name: "importoverview2", | |
199 component: Main, | |
200 meta: { | |
201 requiresAuth: true | |
202 }, | |
203 beforeEnter: (to, from, next) => { | |
204 const isWaterwayAdmin = store.getters["user/isWaterwayAdmin"]; | |
205 if (!isWaterwayAdmin) { | |
206 next("/"); | |
207 } else { | |
208 store.commit("application/showContextBox", true); | |
209 store.commit("application/contextBoxContent", "importoverview2"); | |
210 store.commit("application/showSearchbar", true); | 191 store.commit("application/showSearchbar", true); |
211 next(); | 192 next(); |
212 } | 193 } |
213 } | 194 } |
214 }, | 195 }, |