diff client/src/fairway/Fairwayprofile.vue @ 1204:ddfdf440da24

made searchbar contextual if bottlenecks are open search bar refers to that list if imports are open search bar is hidden
author Markus Kottlaender <markus@intevation.de>
date Mon, 19 Nov 2018 11:23:00 +0100
parents 502e0b960424
children ba8cd80d68b6
line wrap: on
line diff
--- a/client/src/fairway/Fairwayprofile.vue	Mon Nov 19 09:09:27 2018 +0100
+++ b/client/src/fairway/Fairwayprofile.vue	Mon Nov 19 11:23:00 2018 +0100
@@ -532,7 +532,7 @@
     },
     applyCoordinates(coordinates) {
       // allow only numbers
-      coordinates = coordinates.filter(c => Number(c) === c)
+      coordinates = coordinates.filter(c => Number(c) === c);
       if (coordinates.length === 4) {
         // draw line on map
         const cutLayer = this.getLayerByName("Cut Tool");
@@ -550,7 +550,8 @@
       } else {
         displayError({
           title: "Invalid input",
-          message: "Please enter correct coordinates in the format: Lat,Lon,Lat,Lon"
+          message:
+            "Please enter correct coordinates in the format: Lat,Lon,Lat,Lon"
         });
       }
     },