changeset 2983:2e7c0f9cff24

client: removed unnecessary component property
author Markus Kottlaender <markus@intevation.de>
date Tue, 09 Apr 2019 16:42:58 +0200
parents ef79b635857b
children 61f69e8919d3
files client/src/components/App.vue client/src/components/Sidebar.vue
diffstat 2 files changed, 3 insertions(+), 8 deletions(-) [+]
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",
--- a/client/src/components/Sidebar.vue	Tue Apr 09 16:31:55 2019 +0200
+++ b/client/src/components/Sidebar.vue	Tue Apr 09 16:42:58 2019 +0200
@@ -106,7 +106,6 @@
 
 export default {
   name: "sidebar",
-  props: ["routeName"],
   data() {
     return {
       stagingNotifications: null
@@ -146,7 +145,7 @@
       return (
         this.showContextBox &&
         this.contextBoxContent === item &&
-        this.routeName == "mainview"
+        this.$route.name == "mainview"
       );
     }
   },