Mercurial > gemma
comparison client/src/store/fairwayprofile.js @ 4502:4c3851391b6d
client: fairwayprofile: implement custom depth for x-cuts
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Wed, 02 Oct 2019 12:42:25 +0200 |
parents | 9e296d686f16 |
children | 9887061df57b |
comparison
equal
deleted
inserted
replaced
4501:8a6c410f6f03 | 4502:4c3851391b6d |
---|---|
33 startPoint: null, | 33 startPoint: null, |
34 endPoint: null, | 34 endPoint: null, |
35 previousCuts: [], | 35 previousCuts: [], |
36 profileLoading: false, | 36 profileLoading: false, |
37 selectedCut: null, | 37 selectedCut: null, |
38 differencesLoading: false | 38 differencesLoading: false, |
39 depth: 2.5, | |
40 useCustomDepth: true | |
39 }; | 41 }; |
40 }; | 42 }; |
41 | 43 |
42 export default { | 44 export default { |
43 init, | 45 init, |
53 additionalSurvey: state => { | 55 additionalSurvey: state => { |
54 return state.additionalSurvey; | 56 return state.additionalSurvey; |
55 } | 57 } |
56 }, | 58 }, |
57 mutations: { | 59 mutations: { |
60 setDepth: (state, value) => { | |
61 state.depth = value; | |
62 }, | |
63 setUseCustomDepth: (state, flag) => { | |
64 state.useCustomDepth = flag; | |
65 }, | |
58 additionalSurvey: (state, additionalSurvey) => { | 66 additionalSurvey: (state, additionalSurvey) => { |
59 state.additionalSurvey = additionalSurvey; | 67 state.additionalSurvey = additionalSurvey; |
60 }, | 68 }, |
61 setSelectedWaterLevel: (state, level) => { | 69 setSelectedWaterLevel: (state, level) => { |
62 state.selectedWaterLevel = level; | 70 state.selectedWaterLevel = level; |