changeset 3381:540ef09bd6bc

fix linting
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 15:53:05 +0200
parents d83c738e8627
children 2d90ec061458
files client/src/components/fairway/AvailableFairwayDepthLNWL.vue client/src/store/fairwayavailability.js
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed May 22 15:38:21 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed May 22 15:53:05 2019 +0200
@@ -513,8 +513,7 @@
         })
         .attr("width", this.barsWidth)
         .attr("fill", d => {
-          if (d.level === "LDC") return "#aaaaaa";
-          return "#3333cc";
+          return this.$options.LWNLCOLORS[d.level];
         });
     },
     drawScaleLabel() {
@@ -550,6 +549,10 @@
     }
   },
   LEGEND: app.$gettext("Percent"),
-  AFDCOLORS: ["#33333", "#666666", "#999999"]
+  AFDCOLORS: ["#782121", "#ff6c6c", "#3675ff"],
+  LWNLCOLORS: {
+    LDC: "#aaaaaa",
+    HDC: "#ff6600"
+  }
 };
 </script>
--- a/client/src/store/fairwayavailability.js	Wed May 22 15:38:21 2019 +0200
+++ b/client/src/store/fairwayavailability.js	Wed May 22 15:53:05 2019 +0200
@@ -231,7 +231,7 @@
       });
     },
     loadAvailableFairwayDepthLNWLDiagram: ({ commit, dispatch }, options) => {
-      dispatch("loadAvailableFairwayDepthLNWL", options).then(response => {
+      dispatch("loadAvailableFairwayDepthLNWL", options).then(() => {
         //const data = response;
         let data = LNWLDIAGRAMMOCKDATA;
         Object.keys(data).forEach(diagramComponent => {