# HG changeset patch # User Thomas Junk # Date 1554124369 -7200 # Node ID 8b32574bed09af6758aca9a0ed17f06fa4b1bf7e # Parent 55a9c7965e25f0d5c3aa70f39ad7b0b32f3e1f88 wip diff -r 55a9c7965e25 -r 8b32574bed09 client/src/components/App.vue --- a/client/src/components/App.vue Mon Apr 01 13:24:32 2019 +0200 +++ b/client/src/components/App.vue Mon Apr 01 15:12:49 2019 +0200 @@ -79,7 +79,7 @@ ...mapState("user", ["isAuthenticated"]), ...mapState("application", ["contextBoxContent", "showSearchbar"]), isMapVisible() { - return /importoverview|stretches|review|bottlenecks|mainview/.test( + return /importconfiguration|importoverview|stretches|review|bottlenecks|mainview/.test( this.routeName ); }, diff -r 55a9c7965e25 -r 8b32574bed09 client/src/components/Contextbox.vue --- a/client/src/components/Contextbox.vue Mon Apr 01 13:24:32 2019 +0200 +++ b/client/src/components/Contextbox.vue Mon Apr 01 15:12:49 2019 +0200 @@ -6,6 +6,7 @@ + @@ -31,7 +32,9 @@ Bottlenecks: () => import("@/components/Bottlenecks"), Stretches: () => import("@/components/ImportStretches.vue"), ImportOverview: () => - import("@/components/importoverview/ImportOverview.vue") + import("@/components/importoverview/ImportOverview.vue"), + ImportConfiguration: () => + import("@/components/importconfiguration/Import.vue") }, computed: { ...mapState("application", [ diff -r 55a9c7965e25 -r 8b32574bed09 client/src/components/importconfiguration/Import.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/importconfiguration/Import.vue Mon Apr 01 15:12:49 2019 +0200 @@ -0,0 +1,9 @@ + + + + + diff -r 55a9c7965e25 -r 8b32574bed09 client/src/router.js --- a/client/src/router.js Mon Apr 01 13:24:32 2019 +0200 +++ b/client/src/router.js Mon Apr 01 15:12:49 2019 +0200 @@ -175,6 +175,26 @@ } }, { + path: "/imports/configuration", + name: "importconfiguration", + component: Maplayer, + meta: { + requiresAuth: true + }, + beforeEnter: (to, from, next) => { + const isWaterwayAdmin = store.getters["user/isWaterwayAdmin"]; + if (!isWaterwayAdmin) { + next("/login"); + } else { + store.commit("application/searchQuery", ""); + store.commit("application/showContextBox", true); + store.commit("application/contextBoxContent", "importconfiguration"); + store.commit("application/showSearchbar", true); + next(); + } + } + }, + { path: "/imports/overview/:id?", name: "importoverview", component: Maplayer,