Mercurial > gemma
diff client/src/application/Sidebar.vue @ 1093:31b36ef00784
fix: bottleneck list and zoom buttons are now only displayed in main view
moving the bottleneck list from the main menu to a separate button in the main view should be considered
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 30 Oct 2018 12:29:13 +0100 |
parents | 5979b63cce9d |
children | d9e6a1f6f394 |
line wrap: on
line diff
--- a/client/src/application/Sidebar.vue Tue Oct 30 12:01:53 2018 +0100 +++ b/client/src/application/Sidebar.vue Tue Oct 30 12:29:13 2018 +0100 @@ -4,7 +4,7 @@ <div class="menupoints" v-if="!this.sidebarCollapsed"> <router-link to="/" class="text-body d-flex flex-row nav-link"> <i class="fa fa-map-o align-self-center navicon"></i>Riverbed Morphology</router-link> - <a href="#" class="text-body d-flex flex-row nav-link" @click="$store.commit('application/toggleBottlenecks');"> + <a v-if="routeName == 'mainview'" href="#" class="text-body d-flex flex-row nav-link" @click="$store.commit('application/toggleBottlenecks');"> Bottlenecks </a> <div v-if="isSysAdmin"> @@ -45,6 +45,7 @@ export default { name: "sidebar", + props: ["routeName"], computed: { ...mapGetters("user", ["isSysAdmin"]), ...mapGetters("application", ["sidebarCollapsed"]),