diff client/src/fairway/store.js @ 802:327aa4a18a1c

Fairway profile WIP
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 27 Sep 2018 13:36:43 +0200
parents 1bee00039973
children 07be3e5f99a9
line wrap: on
line diff
--- a/client/src/fairway/store.js	Thu Sep 27 13:18:50 2018 +0200
+++ b/client/src/fairway/store.js	Thu Sep 27 13:36:43 2018 +0200
@@ -12,10 +12,14 @@
       { year: "2016", level: 0, color: "#005DFF" },
       { year: "2017", level: -0.5, color: "#639CFF" }
     ],
+    fairwayCoordinates: [],
     startPoint: null,
     endPoint: null
   },
   getters: {
+    fairwayCoordinates: state => {
+      return state.fairwayCoordinates;
+    },
     waterLevels: state => {
       return state.waterLevels;
     },
@@ -60,6 +64,9 @@
     },
     setEndPoint: (state, end) => {
       state.endPoint = end;
+    },
+    setFairwayCoordinates: (state, coordinates) => {
+      state.fairwayCoordinates = coordinates;
     }
   },