comparison client/src/store/fairway.js @ 3183:f64cc98746a1

statistics: put selected feature in fairwaystore
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 07 May 2019 16:30:20 +0200
parents b6cc4838d2c0
children 1ba2a7d22fbb
comparison
equal deleted inserted replaced
3182:77fc44ad05e3 3183:f64cc98746a1
35 startPoint: null, 35 startPoint: null,
36 endPoint: null, 36 endPoint: null,
37 previousCuts: [], 37 previousCuts: [],
38 profileLoading: false, 38 profileLoading: false,
39 selectedCut: null, 39 selectedCut: null,
40 differencesLoading: false 40 differencesLoading: false,
41 selectedFairwayAvailabilityFeature: null
41 }; 42 };
42 }; 43 };
43 44
44 export default { 45 export default {
45 init, 46 init,
55 additionalSurvey: state => { 56 additionalSurvey: state => {
56 return state.additionalSurvey; 57 return state.additionalSurvey;
57 } 58 }
58 }, 59 },
59 mutations: { 60 mutations: {
61 setSelectedFairwayAvailability: (state, feature) => {
62 state.selectedFairwayAvailabilityFeature = feature;
63 },
60 additionalSurvey: (state, additionalSurvey) => { 64 additionalSurvey: (state, additionalSurvey) => {
61 state.additionalSurvey = additionalSurvey; 65 state.additionalSurvey = additionalSurvey;
62 }, 66 },
63 setSelectedWaterLevel: (state, level) => { 67 setSelectedWaterLevel: (state, level) => {
64 state.selectedWaterLevel = state.waterLevels[level]; 68 state.selectedWaterLevel = state.waterLevels[level];