comparison client/src/components/fairway/AvailableFairwayDepthLNWL.vue @ 3475:45104cc6fd50

legend
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 27 May 2019 12:20:23 +0200
parents a39795393c7c
children 879a85aea8a5
comparison
equal deleted inserted replaced
3474:a39795393c7c 3475:45104cc6fd50
240 }, 240 },
241 methods: { 241 methods: {
242 legendStyle(index) { 242 legendStyle(index) {
243 const style = { 243 const style = {
244 0: `background-color: ${this.$options.LWNLCOLORS.LDC};`, 244 0: `background-color: ${this.$options.LWNLCOLORS.LDC};`,
245 1: `background-color: ${this.$options.AFDCOLORS[0]};`, 245 1: `background-color: ${this.$options.AFDCOLORS[2]};`,
246 2: `background-color: ${this.$options.AFDCOLORS[1]};`, 246 2: `background-color: ${this.$options.AFDCOLORS[1]};`,
247 3: `background-color: ${this.$options.LWNLCOLORS.HDC};` 247 3: `background-color: ${this.$options.AFDCOLORS[0]};`
248 }; 248 };
249 return style[index]; 249 return style[index];
250 }, 250 },
251 applyChange() { 251 applyChange() {
252 if (this.form.template.hasOwnProperty("properties")) { 252 if (this.form.template.hasOwnProperty("properties")) {