Mercurial > gemma
changeset 1053:82ae9cb56982 crossprofile
refac: removed properties from fairwayprofile
Fairwayprofile has access to fairway store.
Only things not directly read from store are now propagated as property.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 13:11:09 +0200 |
parents | e3f3e645792b |
children | 9bd4f82fcd8d |
files | client/src/application/Main.vue client/src/fairway/Fairwayprofile.vue |
diffstat | 2 files changed, 7 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/application/Main.vue Thu Oct 25 11:31:59 2018 +0200 +++ b/client/src/application/Main.vue Thu Oct 25 13:11:09 2018 +0200 @@ -10,18 +10,12 @@ <div v-if="isSplitscreen" class="profile d-flex flex-row"> <FairwayProfile :additionalSurveys="additionalSurveys" - :minAlt="minAlt" - :maxAlt="maxAlt" - :selectedWaterLevel="selectedWaterLevel" - :fairwayCoordinates="fairwayCoordinates" - :waterLevels="waterLevels" :height="height" :width="width" :xScale="xAxis" :yScaleLeft="yAxisLeft" :yScaleRight="yAxisRight" :margin="margins" - :totalLength="totalLength" ></FairwayProfile> </div> </div>
--- a/client/src/fairway/Fairwayprofile.vue Thu Oct 25 11:31:59 2018 +0200 +++ b/client/src/fairway/Fairwayprofile.vue Thu Oct 25 13:11:09 2018 +0200 @@ -92,12 +92,6 @@ "yScaleLeft", "yScaleRight", "margin", - "totalLength", - "waterLevels", - "fairwayCoordinates", - "selectedWaterLevel", - "minAlt", - "maxAlt", "additionalSurveys" ], computed: { @@ -105,7 +99,13 @@ "startPoint", "endPoint", "currentProfile", - "selectedMorph" + "selectedMorph", + "minAlt", + "maxAlt", + "totalLength", + "fairwayCoordinates", + "waterLevels", + "selectedWaterLevel" ]), currentData() { const currentSurveyDate = this.selectedMorph.date_info;