Mercurial > gemma
changeset 811:9b982e50e938
split only with data
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 27 Sep 2018 17:08:26 +0200 |
parents | 68a39aea942a |
children | 98a7776100fb |
files | client/src/application/Topbar.vue |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/application/Topbar.vue Thu Sep 27 17:01:22 2018 +0200 +++ b/client/src/application/Topbar.vue Thu Sep 27 17:08:26 2018 +0200 @@ -125,6 +125,7 @@ }, computed: { ...mapState("mapstore", ["openLayersMap"]), + ...mapState("fairwayprofile", ["currentProfile"]), searchIndicator: function() { if (this.isSearching) { return "⟳"; @@ -215,6 +216,7 @@ this.$store.commit("application/toggleSidebar"); }, splitScreen() { + if (this.currentProfile.length == 0) return; this.$store.commit("application/toggleSplitScreen"); } }