diff --git a/src/components/MapObservation.vue b/src/components/MapObservation.vue index 1ab37087155ae206a253b6bc44e369f19587578f..6f7605b3088433c2001d308d45435119fb9939cd 100644 --- a/src/components/MapObservation.vue +++ b/src/components/MapObservation.vue @@ -44,7 +44,7 @@ <router-link id='btnBack' :to="{name: 'Observation', params:{observationId:myObservationId, paramGeoinfo:myGeoInfo, paramObservation:mapObservation}}" class="vips-btn"> - {{ $t("map.link.back.label") }} + <span v-if="wasPoiSelected">{{ $t("map.link.OK.label") }}</span><span v-else>{{ $t("map.link.back.label") }}</span> </router-link> </div> </div> @@ -136,6 +136,7 @@ myObservationId: '', mapObservation: {}, isMapClicked: false, + wasPoiSelected: false } }, methods: { @@ -420,6 +421,7 @@ }, selectPOI(event) { + this.wasPoiSelected = true; let myPOI = this.poi; if (event.target.value != 0) { $.each(this.lstPOI, function (index, poi) {