# HG changeset patch # User Thomas Junk # Date 1557482217 -7200 # Node ID a7d44d1ae57d7bcd11d657787a8867c0e5f685bf # Parent 94e966ebef356a2882724543cc8b31a0ae925362 available_fairway_depth: legend diff -r 94e966ebef35 -r a7d44d1ae57d client/src/components/fairway/AvailableFairwayDepth.vue --- a/client/src/components/fairway/AvailableFairwayDepth.vue Fri May 10 11:45:39 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Fri May 10 11:56:57 2019 +0200 @@ -3,14 +3,19 @@
-
+
    -
  • +
  • {{ entry }}
-
+
@@ -96,6 +101,12 @@ } }, methods: { + legendStyle(index) { + if (index == 0) return `background-color: ${this.$options.COLORS.LDC};`; + if (index < 4) + return `background-color: ${this.$options.COLORS.REST[index - 1]};`; + return `background-color: ${this.$options.COLORS.HIGHEST};`; + }, close() { this.$store.commit("application/paneSetup", "DEFAULT"); },