# HG changeset patch # User Thomas Junk # Date 1558952205 -7200 # Node ID a39795393c7cf6d64dde87ab1dbb78f74d7e2ba8 # Parent d66cae5be0a1b8d42465bb79d4d44443e157e18c legend diff -r d66cae5be0a1 -r a39795393c7c client/src/components/fairway/AvailableFairwayDepthLNWL.vue --- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Mon May 27 12:15:35 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Mon May 27 12:16:45 2019 +0200 @@ -5,6 +5,13 @@
+ {{ entry }}
@@ -232,6 +239,15 @@ } }, methods: { + legendStyle(index) { + const style = { + 0: `background-color: ${this.$options.LWNLCOLORS.LDC};`, + 1: `background-color: ${this.$options.AFDCOLORS[0]};`, + 2: `background-color: ${this.$options.AFDCOLORS[1]};`, + 3: `background-color: ${this.$options.LWNLCOLORS.HDC};` + }; + return style[index]; + }, applyChange() { if (this.form.template.hasOwnProperty("properties")) { this.templateData = this.defaultTemplate;