Mercurial > gemma
changeset 4014:6036f8f76f76
fix legend
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 19 Jul 2019 14:02:19 +0200 |
parents | e9ab7c53aa19 |
children | 009e9400bef0 |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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};`,