Skip to content

Commit

Permalink
fix(location detail): show error message if not found in OSM. ref #60
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 24, 2023
1 parent 240e21a commit 3e3fb1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/LocationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
</v-col>
</v-row>

<v-row class="mt-0" v-if="location && location.osm_id">
<v-col cols="12" sm="6">
<v-row class="mt-0" v-if="location">
<v-col cols="12" sm="6" v-if="location.osm_id">
<v-btn size="small" append-icon="mdi-open-in-new" :href="getLocationOSMUrl(location)" target="_blank">
OpenStreetMap
</v-btn>
<p v-if="!location.osm_id" class="text-red">
<i>Location not found in OpenStreetMap... Don't hesitate to add it :)</i>
</p>
</v-col>
</v-row>

Expand Down

0 comments on commit 3e3fb1e

Please sign in to comment.