Mercurial > gemma
comparison client/src/store/fairway.js @ 2540:3c17d401fbd4
client: cross profiles: moved waterlevel select to Profiles dialog
aaaand also switched to the popup component as confirmation mechanism for deleting saved profiles
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 07 Mar 2019 15:19:16 +0100 |
parents | 123e7f43b676 |
children | 9bf6b767a56a |
comparison
equal
deleted
inserted
replaced
2539:ad2a1d02ad1c | 2540:3c17d401fbd4 |
---|---|
76 const result = prepareProfile({ geoJSON, startPoint, endPoint }); | 76 const result = prepareProfile({ geoJSON, startPoint, endPoint }); |
77 // Use Vue.set() to make new object properties rective | 77 // Use Vue.set() to make new object properties rective |
78 // https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats | 78 // https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats |
79 const entry = { | 79 const entry = { |
80 date: when, | 80 date: when, |
81 vaule: value | 81 value: value |
82 }; | 82 }; |
83 Vue.set(state.waterLevels, when, entry); | 83 state.waterLevels = { [when]: entry }; |
84 if (state.selectedWaterLevel === "") state.selectedWaterLevel = entry; | 84 state.selectedWaterLevel = entry; |
85 Vue.set(state.currentProfile, surveyDate, { | 85 Vue.set(state.currentProfile, surveyDate, { |
86 points: result.points, | 86 points: result.points, |
87 length: result.lengthPolyLine | 87 length: result.lengthPolyLine |
88 }); | 88 }); |
89 if (!state.minAlt || state.minAlt > result.minAlt) { | 89 if (!state.minAlt || state.minAlt > result.minAlt) { |