comparison client/src/store/fairwayavailability.js @ 3366:8974efd71917

fa_LNWL: cleanup
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 09:33:40 +0200
parents 9625c6120d18
children 70605404f37d
comparison
equal deleted inserted replaced
3365:c9b60130cdfb 3366:8974efd71917
33 breadthlimit1: null, 33 breadthlimit1: null,
34 breadthlimit2: null, 34 breadthlimit2: null,
35 fwData: null, 35 fwData: null,
36 fwLNWLData: null, 36 fwLNWLData: null,
37 fwLNWLOverviewData: [], 37 fwLNWLOverviewData: [],
38 legendLNWL: null,
38 legend: null, 39 legend: null,
39 LOS: 3 40 LOS: 3
40 }; 41 };
41 }; 42 };
42 43
99 state.legend = headerEntries.map(x => { 100 state.legend = headerEntries.map(x => {
100 let entry = x.split("#")[1]; // split leading # 101 let entry = x.split("#")[1]; // split leading #
101 entry = entry.replace("[h]", "").trim(); // omit unit 102 entry = entry.replace("[h]", "").trim(); // omit unit
102 return entry; 103 return entry;
103 }); 104 });
105 },
106 setLegendLNWL: (state, headerLNWL) => {
107 this.headerLNWL = headerLNWL;
104 } 108 }
105 }, 109 },
106 actions: { 110 actions: {
107 loadAvailableFairwayDepth: ({ commit }, options) => { 111 loadAvailableFairwayDepth: ({ commit }, options) => {
108 return new Promise((resolve, reject) => { 112 return new Promise((resolve, reject) => {