Skip to content
Snippets Groups Projects
Commit c720ac28 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Changed button logic: If selecting POI, "Back" changes to "OK"

parent ccf338ee
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment