diff client/src/components/App.vue @ 2983:2e7c0f9cff24

client: removed unnecessary component property
author Markus Kottlaender <markus@intevation.de>
date Tue, 09 Apr 2019 16:42:58 +0200
parents 8b32574bed09
children 4f4905b57fcf
line wrap: on
line diff
--- a/client/src/components/App.vue	Tue Apr 09 16:31:55 2019 +0200
+++ b/client/src/components/App.vue	Tue Apr 09 16:42:58 2019 +0200
@@ -3,7 +3,7 @@
     <div v-if="isAuthenticated" class="d-flex flex-column userinterface">
       <div class="boxes d-flex p-2">
         <div class="mr-auto d-flex">
-          <Sidebar :routeName="routeName" />
+          <Sidebar />
           <div :class="searchContainer">
             <Search v-if="isMapVisible" />
             <Contextbox v-if="isMapVisible" />
@@ -80,13 +80,9 @@
     ...mapState("application", ["contextBoxContent", "showSearchbar"]),
     isMapVisible() {
       return /importconfiguration|importoverview|stretches|review|bottlenecks|mainview/.test(
-        this.routeName
+        this.$route.name
       );
     },
-    routeName() {
-      const routeName = this.$route.name;
-      return routeName;
-    },
     searchContainer() {
       return [
         "ml-2",