# HG changeset patch # User Thomas Junk # Date 1563537739 -7200 # Node ID 6036f8f76f76d86f1f4c1e2ffbe8714d4b38b81d # Parent e9ab7c53aa19528faa9212c0d84acf9b96a8d10f fix legend diff -r e9ab7c53aa19 -r 6036f8f76f76 client/src/components/fairway/AvailableFairwayDepth.vue --- a/client/src/components/fairway/AvailableFairwayDepth.vue Fri Jul 19 13:07:11 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Fri Jul 19 14:02:19 2019 +0200 @@ -311,6 +311,16 @@ } }, legendStyle(index) { + if (this.depthlimit1 === this.depthlimit2) { + let result = [ + `background-color: ${this.$options.COLORS.LDC};`, + `background-color: ${this.$options.COLORS.HIGHEST};` + ]; + this.fwData[0].lowerLevels.forEach((e, i) => { + result.push(`background-color: ${this.$options.COLORS.REST[i]};`); + }); + return result[index]; + } return [ `background-color: ${this.$options.COLORS.LDC};`, `background-color: ${this.$options.COLORS.HIGHEST};`,