diff client/src/store/fairwayprofile.js @ 4502:4c3851391b6d

client: fairwayprofile: implement custom depth for x-cuts
author Fadi Abbud <fadi.abbud@intevation.de>
date Wed, 02 Oct 2019 12:42:25 +0200
parents 9e296d686f16
children 9887061df57b
line wrap: on
line diff
--- a/client/src/store/fairwayprofile.js	Mon Sep 30 16:07:48 2019 +0200
+++ b/client/src/store/fairwayprofile.js	Wed Oct 02 12:42:25 2019 +0200
@@ -35,7 +35,9 @@
     previousCuts: [],
     profileLoading: false,
     selectedCut: null,
-    differencesLoading: false
+    differencesLoading: false,
+    depth: 2.5,
+    useCustomDepth: true
   };
 };
 
@@ -55,6 +57,12 @@
     }
   },
   mutations: {
+    setDepth: (state, value) => {
+      state.depth = value;
+    },
+    setUseCustomDepth: (state, flag) => {
+      state.useCustomDepth = flag;
+    },
     additionalSurvey: (state, additionalSurvey) => {
       state.additionalSurvey = additionalSurvey;
     },