diff client/src/application/Topbar.vue @ 811:9b982e50e938

split only with data
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 27 Sep 2018 17:08:26 +0200
parents 327aa4a18a1c
children 2e2ac0b88af9
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");
     }
   }