Mercurial > gemma
diff client/src/components/identify/Identify.vue @ 4266:fbe2f1aa2757
styles: refactor color coding accuracy colors
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 27 Aug 2019 14:22:45 +0200 |
parents | 2596a028dc3a |
children | c5642480eb9b |
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue Tue Aug 27 11:46:51 2019 +0200 +++ b/client/src/components/identify/Identify.vue Tue Aug 27 14:22:45 2019 +0200 @@ -161,7 +161,7 @@ import classifications from "../../lib/classifications"; import { styleFactory } from "@/components/map/styles"; -const colorCodes = styleFactory().colorCodes; +const { currencyColorCodes } = styleFactory(); export default { name: "identify", @@ -191,7 +191,7 @@ return messagesPerState[classifications.surveyCurrency(feature)]; }, currencyColor(feature) { - return colorCodes[classifications.surveyCurrency(feature)]; + return currencyColorCodes[classifications.surveyCurrency(feature)]; }, showBottleneckMeta(feature) { const result = /bottleneck/.test(feature.getId().toLowerCase());