comparison 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
comparison
equal deleted inserted replaced
2982:ef79b635857b 2983:2e7c0f9cff24
1 <template> 1 <template>
2 <div id="app" class="main"> 2 <div id="app" class="main">
3 <div v-if="isAuthenticated" class="d-flex flex-column userinterface"> 3 <div v-if="isAuthenticated" class="d-flex flex-column userinterface">
4 <div class="boxes d-flex p-2"> 4 <div class="boxes d-flex p-2">
5 <div class="mr-auto d-flex"> 5 <div class="mr-auto d-flex">
6 <Sidebar :routeName="routeName" /> 6 <Sidebar />
7 <div :class="searchContainer"> 7 <div :class="searchContainer">
8 <Search v-if="isMapVisible" /> 8 <Search v-if="isMapVisible" />
9 <Contextbox v-if="isMapVisible" /> 9 <Contextbox v-if="isMapVisible" />
10 </div> 10 </div>
11 </div> 11 </div>
78 computed: { 78 computed: {
79 ...mapState("user", ["isAuthenticated"]), 79 ...mapState("user", ["isAuthenticated"]),
80 ...mapState("application", ["contextBoxContent", "showSearchbar"]), 80 ...mapState("application", ["contextBoxContent", "showSearchbar"]),
81 isMapVisible() { 81 isMapVisible() {
82 return /importconfiguration|importoverview|stretches|review|bottlenecks|mainview/.test( 82 return /importconfiguration|importoverview|stretches|review|bottlenecks|mainview/.test(
83 this.routeName 83 this.$route.name
84 ); 84 );
85 },
86 routeName() {
87 const routeName = this.$route.name;
88 return routeName;
89 }, 85 },
90 searchContainer() { 86 searchContainer() {
91 return [ 87 return [
92 "ml-2", 88 "ml-2",
93 { 89 {