Mercurial > gemma
diff client/src/components/map/fairway/Profiles.vue @ 1391:801ae5f4bc5b
fixed bug when changing additional survey in profile dialog
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 28 Nov 2018 08:11:23 +0100 |
parents | 8b85032ed3cd |
children | b350b0b5cb6c |
line wrap: on
line diff
--- a/client/src/components/map/fairway/Profiles.vue Tue Nov 27 17:24:48 2018 +0100 +++ b/client/src/components/map/fairway/Profiles.vue Wed Nov 28 08:11:23 2018 +0100 @@ -202,7 +202,7 @@ return this.$store.state.fairwayprofile.additionalSurvey; }, set(survey) { - this.$store.commit("fairwayprofile/setAdditionalSurvey", survey); + this.$store.commit("fairwayprofile/additionalSurvey", survey); } }, additionalSurveys() { @@ -234,7 +234,10 @@ this.selectedBottleneck + " (" + new Date().toISOString() + ")"; }, selectedSurvey(survey) { - if (survey) this.$store.dispatch("fairwayprofile/loadProfile", survey); + this.$store.commit("fairwayprofile/additionalSurvey", null); + if (survey) { + this.$store.dispatch("fairwayprofile/loadProfile", survey); + } }, additionalSurvey(survey) { if (survey) this.$store.dispatch("fairwayprofile/loadProfile", survey);