Mercurial > gemma
changeset 896:b9aaa093a9fb
fix: splitbutton only visible when result is visible
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 02 Oct 2018 16:02:56 +0200 |
parents | 1cd749dcb6a3 |
children | b3c18ced286c |
files | client/src/application/Topbar.vue client/src/fairway/store.js |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/application/Topbar.vue Tue Oct 02 14:47:47 2018 +0200 +++ b/client/src/application/Topbar.vue Tue Oct 02 16:02:56 2018 +0200 @@ -18,7 +18,7 @@ </ul> </div> </div> - <div v-if="routeName == 'mainview'" class="splitbutton"> + <div v-if="routeName == 'mainview' && currentProfile.length" class="splitbutton"> <i @click="splitScreen" class="ui-element splitscreen fa fa-window-restore shadow"></i> </div> <div class="">
--- a/client/src/fairway/store.js Tue Oct 02 14:47:47 2018 +0200 +++ b/client/src/fairway/store.js Tue Oct 02 16:02:56 2018 +0200 @@ -10,10 +10,7 @@ minAlt: 0, maxAlt: 0, currentProfile: [], - waterLevels: [ - { year: "2016", level: DEMOLEVEL, color: "#005DFF" }, - { year: "2017", level: 147.2, color: "#639CFF" } - ], + waterLevels: [{ year: "2016", level: DEMOLEVEL, color: "#005DFF" }], selectedWaterLevel: DEMOLEVEL, fairwayCoordinates: [], startPoint: null,